Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!


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

Saving image on scrolling??
Posted by PickwickBob3 at 10/29/2007 3:46:01 PM
I have a form which loads a scanned image of a page of paper as a bitmap from a file and scrolls ok. I would like to draw a rectangle on the image with the following code but of course the image is not saved and when scrolling occurs the rectangle is not redrawn when the rectangle scroll of...more >>


jpeg encoder
Posted by butch77 NO[at]SPAM web.de at 10/29/2007 2:06:58 AM
Hi! I'm compressing jpgs with C# in the standard way, and I had to realize, that the quality is pretty poor. I'd like to switch to a 4:4:4 compression (Y:U:V) I couldn't find anything on the web to change the standard encoder to do that. Is there any other dotNet library that I can use to encod...more >>

Read an Image File Question
Posted by Samuel at 10/28/2007 6:37:57 PM
Is it possible to read an image file into a bitmap of a specific size so if the file image is 1000 pixels by 1500 it will be loaded to a smaller bitmap and shrink it in the process I can specify the exact dimensions of the bitmap Alternatively is it possible to shrink a Jpeg image without l...more >>

Draw an image from a file
Posted by Samuel at 10/28/2007 12:36:59 PM
I would like to print a large tiff image, the size of the tiff file is about 40k but when I create a bitmap so I can print it the size of the bitmap is 40mb or possibly much more Is there any way to print an image directly from the file (currently I use PrintDocument) Thank you, Samuel ...more >>

Print multipage tif?
Posted by M O J O at 10/28/2007 12:00:00 AM
Hi, (using vb.net 2005) How do I print a multipage tif? Thanks in advance! M O J O...more >>

Compressed bitmap
Posted by Samuel at 10/27/2007 11:16:59 PM
I need to read a tiff Image and change it slightly. Currently I create a bitmap then I draw the original image and do the changes. Since the tiff is very large in size the bitmap takes a huge amount of memory Is there anyway to create a bitmap and keep the image compressed? Thank you i...more >>

Gradient fill a bitmap
Posted by rob at 10/25/2007 1:51:20 PM
Hello, If I have the following bitmap: Dim myBitmap As New System.Drawing.Bitmap("C:\Test.Bmp") Could somebody show me how to gradient fill this bitmap? Thanks, Rob Panosh Advanced Software Designs ...more >>

Reading TIFF files
Posted by Victory at 10/23/2007 2:19:21 PM
Hi, What does .NET have to read the compression technology used in a TIFF file? thx! Mars *** Sent via Developersdex http://www.developersdex.com ***...more >>



Bitmap.GetHIcon leaking GDI resources?
Posted by Smokey Grindel at 10/19/2007 9:04:02 AM
when I do this code Dim HIcon As IntPtr = bmp.GetHicon to convert a Bitmap which is just a 16x16 image I pulled from a resource originally as an icon (16x16x32bit) then converted into a bitmap to draw on it's surface then wanted to convert back to an icon... but when I do the other two comman...more >>

Generating a PNG8 image with System.Drawing
Posted by vladimir.knobel NO[at]SPAM trimedia.ch at 10/18/2007 5:47:55 AM
Hi everyone, I'm working in a MCMS 2002 site and for a template I need to create images on the fly. The image format of choice is PNG because this images had to have a transparent background and .NET doesn't go very well with transparent GIFs (black background generated instead). So everyth...more >>

Printing multiline text, how to get the correct rectangle height.
Posted by Marius Horak at 10/17/2007 8:22:55 AM
I'm using float height; MeasureString(text, font, size, new StringFormat(), out charCount, out lineCount); to get number of lines, font is Ariel 9pt. Next height = lineCount * font.Height; to get rectangle height. But the height is not big enough. It's OK for 3-4 line but late...more >>

DrawImage() performance issue in GDI+
Posted by Florin (H.P.C. Consulting) at 10/17/2007 7:20:04 AM
I am using GDI+ to develop a image editor. An image consists of a list of text controls and image controls. I draw everything in a picture box. I use DrawImage() to draw the image layers, but the performance is very bad, especially when the user drags an image (i have implemented a drag a...more >>

Preview Document
Posted by Alvaro E. Gonzalez V. at 10/16/2007 11:33:13 AM
Hi; I'm build a wizard and it have a preview document, to this i used PrintPreviewControl, but don't show the document, How do it? Thanks. Alvaro....more >>

Create thumbs.db file
Posted by moWhite at 10/16/2007 7:35:03 AM
I have hundreds of directories with hundreds of images in each directory. When a user steps into the directory for the first time a thumbs.db file is created. Across a network, this can take some time. Is there a .NET Drawing or Windows API function to create these thumbs.db files in adva...more >>

terms of use
Posted by Enrico at 10/11/2007 2:08:00 AM
If i find a piece of code I want to use in my own program on this newsgroup, what are the license terms to do so? Thanks...more >>

StretchDIBits? Vista? Nvidia?
Posted by Norman Diamond at 10/11/2007 12:00:00 AM
A C++ DLL has bits for a DIB and a BITMAPINFO structure. biBitCount is 24 and biHeight is positive, treating the DIB as bottom-up[*]. On 32-bit Windows XP and Vista systems, a C# program has Int32 variables that are actually pointers[**] and there is no problem with those. The destination DC ...more >>

GDI+ throw OutOfMemoryException when draw a smill dash line.
Posted by Colin Han at 10/6/2007 11:19:01 PM
I was write follow code in my product. ----------------------------------------- public void Test(Graphics g) { using (Pen pen = new Pen(Color.Red)) { pen.DashStyle = System.Drawing.Drawing2D.DashStyle.Dot; pen.DashOffset = 1; g.DrawLine(pen, 0, 0, 1, 0); ...more >>

Opening, Editing & Saving Animated GIF
Posted by angel1241 NO[at]SPAM hotmail.com at 10/4/2007 7:55:49 AM
Hi All I'm tyring to edit an animated gif and saving it back as an animated file. Can someone guide me to the write place? Thanks A...more >>

Create BITMAP graphics with same properties of the PRINTER graphics
Posted by pamela fluente at 10/4/2007 2:50:58 AM
I am printing on the printer graphics. For some reason before printing (some specific parts of) and image I need to create the image on a separate bitmap which has the same resolution (not same size, which will be a parameter) of the printer graphics. This will allow me to transfer direc...more >>

RE: Drawing zoomed in portion of image
Posted by BobRoyAce at 10/3/2007 9:44:50 PM
I have an application that deals with records that all have an image associated with them. These images are all approximately the same size (8.5" x 11" sheet scans). What I would like to do is allow the user to select an image (don't worry about how I'll accomplish that for this discussion), and...more >>

gdiplus.dll location
Posted by Bryan Kinkel at 10/2/2007 5:35:42 PM
In working with PrivateFontCollections, I recently ran into this bug: Memory corruption or an access violation may occur in a custom application that uses the PrivateFontCollection object in Windows XP http://support.microsoft.com/kb/901026 (Lots of fun with this one...) So I wanted to c...more >>

Use gif animation
Posted by jaycee at 10/1/2007 9:25:38 PM
Hi All, (please excuse the cross post with csharp, i just found this group.) I am new to XAML & C#. Is it possible to display a gif animation ( such as a rotating wheel ) on a form whilst waiting for an operation to complete. I have the .gif file which works fine when viewed in Explorer but d...more >>

Pasted clipboard text looks bad
Posted by Academia at 10/1/2007 10:05:46 AM
I copy text to the clipboard using WordPad and then retrieve it and draw it on a panel. The edges of the text looks bad. I suspect that it's the result of antialiasing and the background of the original and panel are different colors. Can you confirm that that could cause it? Can you...more >>


DevelopmentNow Blog