Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
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 >>



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 >>


DevelopmentNow Blog