all groups > dotnet drawing api > february 2008
Graphics.TextRenderingHint throw exception?
Posted by schneider at 2/29/2008 1:06:06 PM
Under some cases Graphics.TextRenderingHint and also Graphics.Save throws an
exception?
I can't seem to understand why. or what I'm doing wrong? and the error
message is useless.
Anyone know whats going on?
Thanks
Schneider
... more >>
struggling to save tiff as png and keep file size down
Posted by sklett at 2/28/2008 1:39:32 PM
(I posted this in the C# NG on accident, reposting here)
I have a Tiff (fax) with the following properties:
width: 1728
height: 1090
x resolution: 204
y resolution: 98
bit depth: 1
If I open this tiff in Photoshop and change the resolution to 96 and resize
to 816 x 1056, then save as png... more >>
Loss of precision when drawing gridlines and blocks on top.....
Posted by alexstevens@blueyonder.co.uk at 2/26/2008 3:56:26 AM
Hi All, I'd really appreciate some help for drawing precision images.
I'm trying to draw gridlines and have them perfectly spaced. I've
provided some code at the end to simulate the issues I'm facing.
In psuedo-code (where I am splitting up the control into four (using
three gridlines), I ta... more >>
reasterization of wmf/emf data looks terrible on vista
Posted by Andy Fish at 2/21/2008 2:30:22 PM
Hello,
I am using graphics.DrawImage() in the .Net 2.0 CLR to convert a wmf/emf
vector image to png. the data is actually a preview of a spreadsheet
embedded in a word document.
If I do this on vista, text output looks really blocky (as if it were
triple-bold or something) compared to ho... more >>
WPF Background issue
Posted by Glenn at 2/21/2008 11:48:04 AM
Hi,
I've created a control that derives from ScrollViewer and override the
OnRender method to draw onto the control. However, if the Background
property is set, the background always draws on top of whatever I draw.
Even if I don't call base.OnRender the background is drawn, so I'm not su... more >>
Creating an image from a Graphics object
Posted by Marco Rego at 2/21/2008 10:45:01 AM
Howdy yall, please help this newbie here.
I need to create an vector based image from a Graphics object but couldn't
realize how to do so: Here are my doubts:
1) How do I create a Graphics object not attached to a Control ? I just need
something to draw on. If I create something like:
... more >>
Color.Equals seems totally useless
Posted by Ben Voigt [C++ MVP] at 2/18/2008 1:29:17 PM
I guess this must be a well-known issue that I just hit my head on.
Color.Equals doesn't apply the usual equality test.
For example:
using (g = Graphics.FromImage(bmp))
g.FillRectangle(Brushes.Black, new Rectangle(Point.Empty, bmp.Size));
One might expect that for any (x, y) inside ... more >>
How to convert font design units to points?
Posted by Norman Diamond at 2/15/2008 4:35:35 PM
The FontFamily.GetEmHeight method gets the height, in font design units, of
the em square for the specified style.
Some overloads of the Font constructor have a second argument which must be
the em size in points.
How can I convert a number of font design units to points? Always divide by... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to draw something into an indexed image
Posted by Norbert_Pürringer at 2/14/2008 7:41:44 AM
Hello there,
I would like to draw something into an indexed bitmap. The problem is,
that the Graphics object may only be used for non-indexed images.
So I have to convert my indexed image into an nonindexed image in
order to be able to manipulate the image and then I have to reconvert
it to... more >>
Graphics.FillPath and Overlap Regions
Posted by Tim at 2/13/2008 9:03:11 AM
Hello,
This may be a simple question. I'm trying to draw a path with multiple
polygons and circles. Transparency is set to 50%. I want the overlap
regions NOT to show. That is, they should be the same transparency level and
color as the non-overlap regions. Is there any way to do this?... more >>
Checkbox Background Colour
Posted by Rodimus74 at 2/5/2008 5:58:39 PM
Has anyone ever come across a checkbox, that when you change the
background colour, the colour behind the tick is changed, not the
label?... more >>
ichTextBox print GDI v.s + GDI+
Posted by Damien at 2/5/2008 3:08:36 AM
Hi,
I really hope someone can help me with this.
I'm developing a windows application (c#, .NET 2.0).
In my solution I have created a custom control that extends the
RichTextBox control.
The reason for this is because I need to perform certain funtions that
are not directly available through... more >>
Transforms: some good examples?
Posted by Jeff Johnson at 2/4/2008 12:11:17 PM
Since I don't work with graphics often, whenever I come to a point where a
transform would be useful I have to spend a lot of time finding articles
about them and reviewing how they work. Not only that, but I'm not
necessarily aware of the many different problems that can be solved using
tra... more >>
Resizing and Compressing to certain limits
Posted by sbparsons at 2/3/2008 10:42:00 AM
I have a client that requests that I take an image off the server and resize
it according to their specific dimensions. For example, take a 3M image (say
900x1200) and resize it to 600x800 (resolution of 100) with a file size of
max. 150k.
Is this possible through GDI+ ?
I am familiar wi... more >>
DVD and CD Windows XP
Posted by wick at 2/2/2008 6:59:00 PM
My DVD and CD only work after I start my computer . They will reed the disks
only intill I remove the disk, if I put the disk back in I have to restart my
computer to get it to reed the disk. The computer does see the disk but it
thinks it is empty.... more >>
|