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

Filter by week: 1 2 3 4 5

Assigning pixel value in a Format8bppIndexed image
Posted by Dustin at 4/30/2004 6:03:57 PM
Hello, I'm trying to create a 256 color paletted based PNG image, and am amazed at either how difficult this is, or how stupid I am. Any pointing in the right direction would greatly be appreciated. Since creating a bitmap using Format8bppIndexed, you can't use SetPixel, what are the optio...more >>


Draw a arrow and move it
Posted by Gerry Viator at 4/30/2004 11:49:34 AM
Hi all, I need to have a arrow move from one control to another? How do I draw a arrow on the screen on top of one control and then move it to the middle of another control? Always appearing on the top. thanks for your help Gerry ...more >>

How to make one color transparent in picture through Vb.Net for a vba application
Posted by Vivek Gupta via .NET 247 at 4/30/2004 4:01:26 AM
(Type your message here) How to make one color transparent in Image through Vb.Net for a vba application .The Image is on the word Document and i have to make one color transparent through .net coding. Any idea Pls Help!!!! -------------------------------- From: Vivek Gupta ----------------...more >>

gif picture and its licence
Posted by Daniel Bolege at 4/29/2004 10:41:45 PM
Hi, as far as I know the gif image format is still not free and developers have to pay a fee if they dont want to infringe the copyright. Therefore I was surprised that .net provides a gif-converter in the GDI+ (Image.Save [...], System.Drawing.Imaging.ImageFormat.Gif). Because of the licen...more >>

Colour Scale
Posted by steven_licciardi NO[at]SPAM hotmail.com at 4/29/2004 8:32:29 AM
I am drawing a contour plot, which is currently grey scale, using all 256 greys. I would like to try using colour instead, but cannot determine a suitable color scale (for instance if I use all colours between 0 and 16777215 it looks very bad). Can anyone suggest possible colour scales I might...more >>

Drawstring too slow!
Posted by Max lopez via .NET 247 at 4/29/2004 3:00:27 AM
I have big performance problem with drawstring! I draw lots of strings in a panel window, memorized in a matrix= rows,columns=2E Every time it needs to repaint all panel (using= invalidate method), the update is too slow=2E I've already used= double buffer to avoid flicker, substituted Pan...more >>

C#, Drawing place
Posted by Mathieu Chavoutier at 4/28/2004 3:16:25 PM
Hi. I would like to have a blank place with points every X pixels, where it would be possible to draw/place components. A little bit like the GUI of VS. I have to be able to draw a circle or wire between components. And possibility of zoom. Do you know anything that could be used for it? ...more >>

Printing - Changing settings after PrintPage() is called
Posted by Jason Newell at 4/28/2004 10:54:26 AM
All, I have a PrintDocument that has 2 pages. The 1st page needs to be Portrait and the 2nd page needs to be landscape. Inside the PrintPage() event, I've tried setting the e.PageSettings.Landscape property, but it seems to have no affect. The page remains Portrait. It appears that the ...more >>



Drawing a single pixel
Posted by Martin Wheeldon at 4/27/2004 5:25:17 PM
Hi all, How can I draw a single pixel with the graphics object? Lines seem to be a minimum of two pixels, rectangles too. Is there a method for drawing pixels? If the answer is obvious forgive me I'm new to this. Thanks in advance, Martin. ...more >>

Howcome not a group called microsoft.public.dotnet.framework.vb
Posted by Richard at 4/27/2004 3:44:58 PM
I can't seem to find a news group called microsoft.public.dotnet.framework.vb there are csharp and asp but howcome not a VB?? is there any way to get one?? and how can I get one if there is a way?? Regards Richard ...more >>

Flickering in Windows Forms containing Gradient Background & Nested Controls
Posted by David Lo via .NET 247 at 4/27/2004 6:07:22 AM
Hi, I'm developing a C# windows application and facing flickering= problem=2E I've tried using double buffering by drawing to a= bitmap first before drawing to screen=2E That solves part of my= problem (those that I manually draw to the screen) but not all=2E= I still find those child con...more >>

Overriding "CanParent" - Does not Works
Posted by Nilesh Rade at 4/27/2004 4:21:02 AM
Hi I am having a custom Tab control. In the Control's designer class am adding the follwoing code but it is not working i am still able to drag and drop a button or other controls on tabControl. But it works if I drag and drop a control, say button on from, and hten cut and try to paste it on my T...more >>

How to make an eraser -- need new CompositingMode?
Posted by BlueMonkMN NO[at]SPAM email.com at 4/26/2004 4:49:40 PM
I am creating a drawing program as part of an application I am making and have run into something I just can't figure out. How can I make a nice anti-aliased eraser? My current erase just uses CompositingMode.SourceCopy with a 0-alpha pen to draw transparency onto the existing image. This wor...more >>

Extracting icons from dll and exe files VB.NET
Posted by Richard at 4/26/2004 3:40:06 PM
how can I extract an icon from a fil for example this sentence "F:\WINDOWS\System32\shell32.dll,3" how can I extract icon nr 3 from the shell32.dll?? regards Richard ...more >>

Color.Blue.Red
Posted by Jos at 4/25/2004 4:27:05 PM
I discovered something curious today. By accident I wrote (I'm using VB): System.Drawing.Color.Blue.Red instead of System.Drawing.Color.Red and it still worked! It gave me a Red color. I would expect to see an exception like: Red is not a member of Blue. Does anybody know if it is su...more >>

Windows Printer Driver escapes in .NET
Posted by Paul Wardle at 4/23/2004 10:34:55 PM
Is there any way of sending special escapes to a Windows Printer driver using .NET? Paul ...more >>

Rotate and Transform problem needs explanation
Posted by James at 4/23/2004 9:33:15 PM
Hi there, i'm a newbie to GDI+ programming and am try to draw a cannon. The cannon is drawing ok with the below code, however when i try to rotate the cannon, the cannon rotation is not about the origin. What i'm try to achive is the the cannon, its, turret, and its shot should be able to rot...more >>

Image Printing & Scaling
Posted by Jason Newell at 4/23/2004 11:02:36 AM
All, I am working on a image printing application for internal use at my company. What I'm needing to be able to do, is basically print any size image to any size paper, scaling the image to "Fit" the paper. The kicker is that I must maintain the image's apect ratio (Image.Width / Image.He...more >>

Image Properties - 2nd post
Posted by Richard at 4/23/2004 10:16:03 AM
How do you access properties of a JPEG using VB.Net? When you right-click a JPEG, choose Properties, and click on the Summary tab, you can manually enter the Title, Subject, Author, Keywords, and Comments. But how are these specific properties read and set in VB.Net? Let me know if I need to post th...more >>

Small drawing application
Posted by JP at 4/23/2004 9:08:59 AM
Hi Im not sure this is right group, but i will ask my question. In a student project, i need to make a small drawing application in C#.NET. The requirements are that it must be possible to draw text and to group different texts by drawing a frame with a visible label around the text. Other fu...more >>

GDI+ Gradient Problem
Posted by anuraguniyal NO[at]SPAM yahoo.com at 4/23/2004 5:28:03 AM
Hi, Can any one please explain this? I am filling a rectangle using a linergradient brush, but sometime brush wraps around e.g. if I do vertical gradient from clr1 -> clr2 sometimes top line of rect has clr2. This is the code i am using <code> CPaintDC dc(this); Graphics graphics(dc.m_...more >>

Problem: transparent form drawing and double buffering
Posted by CS at 4/22/2004 7:47:11 PM
Hello, i want to create a transparent overlay drawing that pops up temporarily. As I don't have anything like Swing's GlassPane, I created a new Form subclass that is transparent, and draw in this Form class. Works beautifully. With the exception that there is a short flicker when the Form co...more >>

Region from GraphicsPath issue
Posted by Glenn Chittenden Jr. at 4/22/2004 3:22:03 PM
I use a GraphicsPath to generate a Region, which is then used for hit testing. The problem I have is that when I use GraphicsPath.AddPolygon, the region I get is hollow, so any hit testing inside the polygon fails. Is there a way to fill the interior of the polygon path, the same way in which...more >>

Loading an embedded bitmap in C#
Posted by Ted Williams at 4/22/2004 2:05:37 PM
Hi, I have a question: How do you load an embedded bitmap resource in C#? I have tried the following but it doesn't seem to want to work: Module mod = Assembly.GetExecutingAssembly().GetModules()[0]; IntPtr hInst = Marshal.GetHINSTANCE( mod ); bmToolbox = Bitmap.Fr...more >>

COLORREF vs Color (clr)
Posted by Bob at 4/22/2004 1:21:03 PM
Another newbie question If I understand correctly the COLORREF holds a DWORD type which is basically a uint in C#. I now have a color structure I need to get the old style COLORREF into. However my number is to large (16,777,215). So when I use the Sytem.Drawing.FromArgb my colors are maxed out ...more >>

Problem converting Bitmap to Tiff
Posted by Ryan at 4/22/2004 11:26:07 AM
I'm having issues writing text to a tiff file. However I have no problems saving text to a Bitmap Here is an example of the code that works with Bitmap Dim objBitmap As New Bitmap(600, 600 Dim objTextBrush As New TextureBrush(objBitmap Dim objFont As New Font("Verdana"...more >>

Accessing LOGFONT Structure via ToLogFont
Posted by Bob at 4/22/2004 10:11:04 AM
I need to use the LOGFONT structure every once in awhile in an application I have written. Currently I am using the FONT class under the framework and need to use the "ToLogFont" method of this class. I have been unable to determine how to get the structure "LOGFONT" from within my application to f...more >>

Cancelling shadow for 3D Piechart between 90 and 180 degrees
Posted by spamfurnace at 4/21/2004 8:41:31 PM
Hi There, After dicking around with Crystal reports Pie Charts and not being able to get the control to do what i wanted, I decided to write my own basic 3D pie chart control. It works fine except for segments that start above 90 degrees and below 180. For segments between 0 and 180 i am us...more >>

vertices of a triangle
Posted by Steven Licciardi at 4/21/2004 4:51:01 PM
I have an arbitrary triangle that wish to draw filled. I would like to fill this triangle by specifying the colours at each vertex on the triangle, then having a linear fill gradient between these vertices. Can anyone tell me how to do this? I have looked at the LinearGradientBrush, but this o...more >>

Reverse the background
Posted by zimmy at 4/20/2004 8:56:56 PM
Hi * I've a simple question but it makes me crazy that I can't find a solution. How to draw a line that reverse the background of my control. I may use ControlPaint.DrawReversableLine but then I cannot use special pen. Any ideas? Best regards, Torsten ...more >>

transparent controls issue
Posted by ds at 4/20/2004 12:36:28 PM
have 2 layers of related graphics that I want to display. The bottom layer is relatively expensive to render and stays static. The top layer displays some user-orchestrated animation, directed via the mouse- similar to a drag-and-drop operation. I've tried laying one control over the other. T...more >>

VB.net 2003 good enough to create commmercial drawing program?
Posted by GraphicsMark at 4/20/2004 5:01:04 AM
Opinions needed - is VB.net good enough to create a proper vector drawing program with some bitmap processing, i.e. does it have a rich enough feature set, and do the compiled programs run fast enough for a commericial release? Or do you have to use C#, maybe even C++ (more difficult languages I pre...more >>

Checking if an image
Posted by Steve Peterson at 4/19/2004 10:32:41 PM
Hi I have an ASP.NET where users can upload images to the server. I've already implemented business logic that checks the file extension of the files uploaded to make sure they are of an acceptable image type. However, it occured to me that a devious user might simply give some non image (Like...more >>

Multi level Undo
Posted by Iltui at 4/19/2004 3:37:51 PM
Hi I need some documentation about "multilevel undo" in programs of image elaboration. Thanks ...more >>

Why no exif codec?
Posted by dominicsmith501 NO[at]SPAM hotmail.com at 4/18/2004 4:10:46 PM
Looking at the list of codecs for GDI+ Bitmaps, from ImageCodecInfo.GetImageEncoders(), there doesn't seem to be an EXIF codec. Does anyone know why - is EXIF not supported? How do you set the encoding parameters for an EXIF? Dom...more >>

Modifying the Conrols Area - A critical problem
Posted by Nilesh Rade at 4/18/2004 12:36:04 AM
Hi All Am having a custom Panel control derived from Panel. I am drawing only a 6 pixel border on the panel to give it a frame effect. But the problem is tht when I am using my custom Panel control to add a control on it and set the dockFill property then the added control is filled over the comple...more >>

When do I redraw?
Posted by badBilly NO[at]SPAM currantbun.com at 4/17/2004 3:28:48 PM
Please, can someone help me - I'm beginning to go crazy! I'm writing something that does some drawing on a picturebox. The problem is I don't know when to redraw my image. I made a post a week ago, but have yet to find a solution. The problem is that when a dialog box gets minimized or clo...more >>

Inverted Transparency!
Posted by Ă–zden Irmak at 4/17/2004 2:37:57 PM
Hello, I'm developing a custom windows forms control which needs to support transparency... By following the GDI+ FAQ by Bob Powell I could make my component transparent...In this method, I can paint, let's say a text, with solid brush over my control and it works great... Now, I want to...more >>

Errors installing a font using GDI
Posted by Helen W at 4/16/2004 1:20:55 PM
Hi In my vb.net Installer class, I check the InstalledFontCollection for myFont, if it isn't there I try to install it using the GDI function AddFontResource. I am getting the following error and don't know why: "System.EntryPointNotFoundException: Unable to find an entry point named Add...more >>

Transparent form without transparent controls?
Posted by Chris Dunaway at 4/16/2004 12:35:17 PM
I want to make a simple form with a few textboxes and buttons. I also want to set the opacity of this form to something other that 100%. When I do this, the buttons and textboxes are also made transparent which I do not deisre. Can I make the form less opaque without affecting the controls o...more >>

transparent BackColor slow repaint
Posted by alles at 4/15/2004 2:21:08 PM
We are implementing a large gui project with all custom UI components. Many of these components have to take on the background of its containing component due to irregular shaped buttons and labels which we need to use a common panel-spanning background image Currently we are setting these compon...more >>

Image Thumbnails question
Posted by Steve Peterson at 4/15/2004 1:40:24 PM
Hi I have an ASP.NET app where users can upload images to the server (that's no problem), but after that then I need to do some image manipulation. I need to take the image and do 2 things: 1) Resize the image to a certain standard size and save that 2) Make a thumbnail of the image and s...more >>

Image Clone problem when using unmanaged memory
Posted by Norvin Laudon at 4/15/2004 1:33:46 PM
Hi, This is a clarification of a previous problem I posted a few weeks ago, which is still giving me trouble. Cloning an image using Bitmap.Clone() works fine when using images created in managed memory. The bits are properly duplicated, and modifying the Cloned image will not affect the Cl...more >>

Determine Color Resolution?
Posted by Anthony Coelho at 4/15/2004 8:34:50 AM
All, Does anyone know how to determine the color resolution at runtime? For instance I need to know if the users screen is set to 256 colors or 16 bit or 32 bit color. I know you can get the screen resolution using the System.Windows.Forms.Screen object, but have yet to find a way to get the ...more >>

ScaleTransform
Posted by Tabulator at 4/15/2004 8:16:09 AM
Hi I use the ScaleTransform(float h, float v) method and i pass the graphics object to a function. How can i retrive h and v inside the function? thanks ...more >>

GDI+ Finding differences between to images (Digital Subtraction)? Way to do it?
Posted by marc_sommer NO[at]SPAM gmx.de at 4/15/2004 5:39:58 AM
Hello, I am looking for a way to find diffeences between two images. I have two images, where in both images there is the same picture / structure / whatever. In the second picture, there is some additonal information including the picture from the previous image. I need to extract this addit...more >>

DrawString problem
Posted by Johnny at 4/14/2004 8:10:22 PM
Hi all, I'm creating a control derived from System.Windows.Forms.Control I override the OnPaint() method. In this method, I need to draw a string in an area. This area is a rectangle (called fRect) I want to display a text centered vertically. I used MeasureString, but the result is not alwa...more >>

Q: For Bob Powell RE: Transparent control
Posted by Chris Dunaway at 4/14/2004 10:32:15 AM
I read your article on your website about creating a transparent control. Is there anyway to alter the amount of transparency using your method? -- Chris To send me an E-mail, remove the underscores and lunchmeat from my E-Mail address....more >>

converting to pixelformat16brgb565
Posted by Randy Pulsifer at 4/14/2004 9:28:30 AM
ASP.NET - VB - VisualStudio.net Enterprise Whereas: most windows bitmaps are 24bit RGB or 32 bit ARGB, and whereas: I have an app that MUST have a single 2byte word for each pixel in RGB565 format. How does one do this in a webapp? I have tried the .clone method to see if that converted anything...more >>

Panel and transparency
Posted by Chris Dunaway at 4/13/2004 4:22:43 PM
If I have a form with a background image on it and then place a panel over it, I can make the panel transparent by setting it BackColor property to include an alpha component. For example, If I set the BackColor (for example) to 128,255,0,0, it is a nice transparent red panel and I can see the ...more >>


DevelopmentNow Blog