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

Glyph paths
Posted by Chris Roth [MVP] at 9/29/2006 6:30:47 PM
Anybody know how/if you can get the actual vectors/curves from a particular font's characters? I'm interested in creating actual shapes for various graphics apps that don't have such a feature. Thanks, Chris ...more >>

Merging (overlay) 2 images
Posted by lewis_t NO[at]SPAM mittalsteel.com at 9/29/2006 1:01:57 PM
I'm new to GDI+ programing but I've studied Bob Powells site and also reviewed many news group posting. What I am attempting to do is put a small image (bm2) on top of a larger image (bm1). According to some other posting the below code should do the job, but it just saves the large image in t...more >>

Microsoft Sponored Lotteries (msw-lottery-draws.socal.rr.com
Posted by shorty at 9/29/2006 11:33:02 AM
Has anyone ever heard of this? I congratulate you as one of the Global Afro Asia sweepstakes lottery winner. N.B: Your winner's Award certificate would be sent with your Cheque. Without the winner's certificate presented at your local bank, you won't be able to claim the money and it might ca...more >>

Painting Very Slow
Posted by S Chapman at 9/29/2006 3:41:49 AM
I am creating an array of TextBoxes and buttons on a windows form. When I switch to a different application and comeback to my app, the TextBoxes and Buttons are rendered very slowly and the user can see the TextBoxes being painted one after the other. The same effect is observed when the form h...more >>

Selecting a rendered object
Posted by Barny at 9/29/2006 12:58:02 AM
I have chosen to develop a small line drawing application. This should be a simple case of "the wheel is being re-invented" so there should be classes and architecture already in place that I can re-use. Each drawn line is an object, be it a straight or curved line. How can I select the o...more >>

OnPaint and blocky refresh
Posted by Keith Langer at 9/27/2006 5:20:48 PM
Hi, I have an written a .Net 1.1 app which acts similarly to a browser. It can display text and images, along with transparent background images and background colors. It also does some effects such as rotating fields and images and blinking text. I use double-buffering to avoid flicker wh...more >>

Managed DirectX 2.0 ? (MDX2)
Posted by Robert Hooker at 9/27/2006 7:56:38 AM
Does anyone have any information on when MDX2.0 will come out of Beta? It seems like its been in Beta for a looong time... Rob ...more >>

How to slice an image from width 180 to 150 pixel?
Posted by Andreas Klemt at 9/26/2006 10:10:43 PM
Hello, I have an image which is a width of 180 pixel. How can I slice 30 pixel from the left of it so that I have a new image with a width of 150 pixel? Many thanks for any help in advance! Regards Andreas Klemt ...more >>



How to bring two images together like X and X to XX?
Posted by Andreas Klemt at 9/26/2006 9:54:56 PM
Hello, I have some images and I want to make one image like X and X to XX How can I do this? Thanks for any help! Regards Andreas Klemt ...more >>

Drawing a bitmap along a series of points: is this possible?
Posted by Keith at 9/26/2006 3:19:06 PM
Hello, I'm fairly new to this stuff and am wondering if this is possible. I have a small image (.png) that I want to draw along a path defined as a series of Points, basically like extruding the image along the line. Is there a good way to do this? Thanks! Keith ...more >>

How to set origin with Graphics?
Posted by Bill Gates at 9/26/2006 12:00:00 AM
With Win32 programming, we can use SetViewportOrgEx to set origin. But on ..NET, how? Thanks! ...more >>

Getting A generic error occurred with GDI+ ERROR
Posted by Showjumper at 9/25/2006 7:33:33 PM
I have set a file based photo gallery. Thumbnails are generated and saved to disk in a folder called thumbnails inside each gallerys folder. Everything works fine on my local machine. If add new photos and then reload the page i see the new thumbs appear. However if upload the photos to the ...more >>

optimal image load
Posted by shulya at 9/25/2006 2:25:08 AM
Hello everyone, I can't find anywhere, what is the best image size for optimal loading (in time) , when the images are on the disk of the computer on which the c# application run. Is there a simple way to check it? I know that when loading images from a remote computer small tiles are th...more >>

VB.NET AND 3D
Posted by Meelis at 9/24/2006 7:09:31 PM
Hi Im developing a checkers game under vb.net 2D board is easy, but how to develop a 3D board. http://www.deltmar.ee/mex/laud.jpg like this one i designed in Rhino3D Is there any 3D engine for .NET or any other solution? Best regards; Mex ...more >>

Rotate image
Posted by Ricardo Furtado at 9/22/2006 8:33:02 AM
I'm trying, for a week or two, to create a procedure in order to rotate the image in any picturebox control in a cephalometry software. I've found a web site that shows how that can be done: http://vb-helper.com/index_vbnet.html but the problem is that the image doesn't stay at the top, inst...more >>

Load bitmap from DLL
Posted by Steve Whine at 9/21/2006 4:10:03 PM
Hello, I need to load a bitmap from the Shell32.dll into a System.Drawing Bitmap object, but I can find no way to do this. I have got a HBITMAP by using the P/Invoked LoadBitmap() function but there seems to be no way to get this into a System.Drawing Bitmap. What is the best way to do this...more >>

How to blend two colors?
Posted by John Smith at 9/19/2006 2:25:34 PM
How can I blend two colors together in a specified ratio to get a third color? ...more >>

Anyone use the ColorMatrix?
Posted by Michael C at 9/19/2006 12:00:00 AM
The MS help as usual explains the bleeding obvious and nothing else. I've noticed a bit of an oddity with the ColorMatrix. If I define the matrix like this 2 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 then it should double all the red values in the bitmap eg an RGB color of 01 01...more >>

Scaling is different across different computers
Posted by Factor at 9/18/2006 1:16:06 PM
Hello everyone! I'm fairly new to GDI+ but I'm loving it. I have written some neat stuff and I am very happy about how it's working out. Of course, there's always a problem. I am having an issue where the form I am using is rendering differently on different machines. It's like the coordi...more >>

Over saturated images
Posted by veronaovi NO[at]SPAM gmail.com at 9/18/2006 11:01:42 AM
I have created a simple web application in ASP.NET 1.1 that reads a folder and displays images to a browser. The images when processed by the below code get a significant kick in saturation. Can someone point me in the right direction on how to avoid this. Sub StreamPic(strPath as String) ...more >>

Palette - why this?
Posted by Hanami at 9/18/2006 12:10:39 AM
private Bitmap CreateGrayscaleBitmap(int width, int height) { Bitmap bmp = new Bitmap(width, height, PixelFormat.Format8bppIndexed); ColorPalette cp = bmp.Palette; for (int i = 0; i < 256; i++) { cp.Entries[i] = Color.FromArgb(i, i, i); bmp.Palett...more >>

Ping Bob Powell
Posted by Michael C at 9/18/2006 12:00:00 AM
First I want to complement you on you FAQ, i've literally read the whole thing from top to bottom and gained much useful information from it. I noticed a couple of bugs (the first 1 isn't really a bug) and wanted to let you know. I couldn't find an email address on the site so thought I'd post...more >>

Image Compression
Posted by Hanami at 9/18/2006 12:00:00 AM
Hi, can we talk about image compression. How we can archive it, compression ratio ??? are you hear about fractal image compression ? ...more >>

Bitmap.Stride
Posted by Hanami at 9/17/2006 8:32:58 PM
if (srcImg.PixelFormat != PixelFormat.Format24bppRgb) { throw new ArgumentException("Invalid pixel format, only support 24b pixel"); } // get source image size int width = srcImg.Width; int height = srcImg.Height; // lock source bitmap data BitmapData srcData = srcImg.LockBit...more >>

BitmapData.Stride explain
Posted by Hanami at 9/17/2006 8:16:25 PM
Hi, I'm studying image processing with C#. I'm implement a application can change image form color to grayscale. My app work well with image this have BitmapData.Stride = 3 * Bitmap.Witdh. I know that, BitmapData.Stride representation a width, but i don't know why some image, Stride > width * ...more >>

Extract partial image from larger image, performance question
Posted by Matthijs Mullender at 9/15/2006 12:00:00 AM
I am trying to extract part (1024x1024) of a large image (6000x9000x24bpp LZW tiff) Using the ImageFast code from http://weblogs.asp.net/justin_rogers/articles/131704.aspx I am able to load the image really fast. (less than 0.1 second) However when I call the LockBits method on the loade...more >>

Rotate a shape on a screen
Posted by stenerson.j NO[at]SPAM mchsi.com at 9/12/2006 7:27:13 AM
Hi, I currently draw many shapes on a graphics object to display on a screen. Now I have a request to rotate some of the shapes, leaving the others alone. I have tried to use the Matrix to transform a GraphicsPath, but it does not seem to work. If I use the Matrix to transform the entire gra...more >>

Anyone know how to draw a diagram with GDI+?
Posted by needin4mation NO[at]SPAM gmail.com at 9/7/2006 4:56:00 PM
I want to draw lines between org parts or other relationships - without purchasing third party tools. Any thoughts on how to start? Just draw some lines at predefined points? ...more >>

Is GDI+ still what is current?
Posted by needin4mation NO[at]SPAM gmail.com at 9/7/2006 2:32:14 PM
I have an older book on GDI using C#. Is MS at GDI+ at the moment? Or is there something newer? Thanks. ...more >>

timerRefresh_tick
Posted by timsohn NO[at]SPAM gmail.com at 9/7/2006 9:42:05 AM
I've been encountering an error when trying to draw to a Bitmap. This error only occurs after trying to draw to the bitmap 10,000+ times or so. Any ideas on what the issue might be? I'm not sure how I can go about debugging a "general error" Encounter unexpected exception in timerRefresh_Tick:...more >>

Loading a Bitmap directly into a thumbnail image
Posted by NeilShore at 9/7/2006 4:51:02 AM
Is there a function that will load a bitmap file directly to a thumbnail image? When you select “View Thumbnails” in explorer, thumbnail images are displayed for each file in the current directory. The thumbnail view works even if the image files, bitmaps in this case, are huge, e.g., 60...more >>

Strange ComboBox drawing issue
Posted by Mike at 9/6/2006 4:07:25 PM
Greetings, We've got a strange ComboBox redrawing issue. It seems as though we have a ComboBox which wants to draw the window rectangle region that was immediately behind it upon activation. We can drag the window around and the image that was clipped follows the window. The ComboBox never dr...more >>

Quickest way of setting raw pixel data?
Posted by Chris Ashley at 9/6/2006 2:50:11 AM
I am directly loading the raw RGB pixel data for a 24 bit bitmap file into a byte array. What is the most efficient way of using this data to generate images in the framework? For example, I have all the raw RGB data for an 864 * 28939 image stored in a byte array. How can I generate smaller i...more >>

Exception when saving bitmap
Posted by ThunderMusic at 9/5/2006 9:45:12 AM
Hi, I receive an exception when saving my files to bitmap (ImageFormat.Bmp)... here is the detail of the exception : 2006/09/04 10:14:42,6400 System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+. at System.Drawing.Image.Save(String filename, ImageCodecInfo e...more >>

Error on images with extremely large dimensions
Posted by Chris Ashley at 9/4/2006 6:24:30 AM
Is there a limit to the dimensions of an image that GDI+ can handle? I have an image 1728 * 30000 which works fine, but I've just tried an image with the dimensions 1728 * 58317 and this is giving me the following error: Parameter is not valid. Description: An unhandled exception occurred dur...more >>

need to use Font file (wst_engl.fon) instead of TrueType (arialABC.ttf) in PriavetFontCollection
Posted by AleXmanFree at 9/4/2006 2:37:18 AM
Hi, problem is in extension of font that I need to use in PrivateFontCollection I need to use in my code font file (i.e. wst_engl.fon) but not TrueType file (*.ttf), but PrivateFontCollection.AddFontFile raises exception, it can't accept .fon type file,but normally accepts *.ttf, how should I ...more >>

Border Style XP Style on custom controls
Posted by Rene at 9/3/2006 3:57:00 PM
If you were to use a control such as the regular textbox and set its BorderStyle to Fixed3D, the border drawn around the textbox is the nice XP style border however, if I create a custom control and sets the BorderStyle property to Fixed3D, I get the old 3D (sunken) style. Why this inco...more >>

Error Saving Bitmaps when stored in an array?
Posted by shp at 9/2/2006 6:25:02 AM
Hi, I have an array of Bitmap images which I am trying to Serialize. I was having a problem Serializing the Bitmaps directly (Although I'm not sure why, the documentation seems to indicate it is Serializable?) but when I try to save the Bitmaps from the array structure an error is thrown. ...more >>


DevelopmentNow Blog