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

Filter by week: 1 2 3 4 5

Alphblending Icons
Posted by Angelina at 7/31/2006 12:00:00 AM
How can I render icons with their alpha blended property on in toolbars, menus, and ther items. Means to say my alpha blended icons looks some distorted when a add to my application but is very clear if seen in explorer or other applications. - Angelina ...more >>


Windows Forms Application : slow rendering problem
Posted by Kürþat at 7/31/2006 12:00:00 AM
Hi, I have 15 CheckBoxs on a Groupbox. This Groupbox lays on on a Tabpage.Thegroupbox is initially invisible. When user clicks a button I set the groupbox visible. The problem is when I set the groupbox visible it renders 15 checkboxs very slowly and one by one. I want to show all checkbo...more >>

painter asp.net (it exist ?)
Posted by Ghena at 7/30/2006 5:28:11 AM
I'm looking for a similar web application: www.izhuk.com/painter exist a similar .net application ? ...more >>

Saving an image from the browser
Posted by Nathan Sokalski at 7/29/2006 6:02:15 PM
I am using ASP.NET, VB.NET, and GDI+ to dynamically create images for webpages. When I right-click on the dynamically created image to try to save it to my hard drive, which I send as ImageFormat.Gif, my browser (Internet Explorer 6.0) wants me to save it as a *.bmp file. The VB.NET line of co...more >>

Development environment / tools
Posted by Hari Shankar at 7/29/2006 4:56:19 PM
Hi I need to develop user interface similar to car radio in windows. for that i am looking for a programming language and/or development environment which can help me in achieving the same. I have the following in mind 1. C++ with MFC 2. C# .NET 2003 3. C#.NET 2005 4. XAML ( i don't know i...more >>

Flickering form and controls when changed at runtime
Posted by avanti at 7/28/2006 4:15:52 PM
Hi, I have a form that contains a SplitContainer and a TableLayoutPanel. I add \ edit rows in the TableLayoutPanel at runtime. When I run the app, the UI flickers a lot. It shows every change step by step before showing the final form. I have set the style of the form as: Set...more >>

Serializing Bitmap
Posted by Victor at 7/28/2006 8:24:42 AM
Hi everybody! I need to send a bitmap (Gdiplus::Bitmap) through a LAN. To this aim I must convert it to a stream - serialize? if I use a right term at this place. Could anybody give me a hint how to do this? Any friendly assistance would be highly appreciated. Victor ...more >>

Creating a font with a defined height and width?
Posted by Robert at 7/28/2006 7:13:59 AM
Hi, we're developing a terminal emulation that is displaying a mainframe screen using a monospace font (Courier New). Dependig on the width of the emulation window the font should be stretched width-ways so that the screen fills the window from the left edge to the right. There seems to be ...more >>



creating multiple regions from an image based on colors
Posted by colecg NO[at]SPAM hotmail.com at 7/28/2006 6:17:47 AM
I have a map, bitmap, of the world. each continent is in different color. I would like to be able to select all pixels from one continent which is colored in one same color into a separate region for a further manipulation. for example, europe is all blue, africa is all red, asia is all green,e...more >>

Bmp to Jpeg
Posted by Angelina at 7/28/2006 12:00:00 AM
I need an algorithm for conversion of a bmp file to jpeg file in .net. I tried to use inbuilt image conversion of .net but they reduce the quality of picture. I need that converted picture should be as clear as original picture. D0 any one have idea about this? - Angelina ...more >>

Drawing to second monitor using Graphics and GetDC
Posted by gregsley58 NO[at]SPAM gmail.com at 7/26/2006 3:42:50 PM
This is my first post, and I'm hoping someone can help me with this problem I've been working on for a few days. I need to paint over other controls on a form, so I'm using GetDC to get an hDC and paint directly to the screen. The problem is that it won't paint to my second monitor. Here is a bi...more >>

Simple question about Bitmap.GetPixel
Posted by NickS at 7/25/2006 10:33:08 PM
Hi everyone, I have a simple program that should draw a 10x10 rectangle when I click the mouse over the mouse click location. Here it is: Bitmap bmp = new Bitmap(@"myImage.bp"); public Form1() { this.Width = bmp.Width; this.Height = bmp.Hei...more >>

Gdi+ Millimeter unit bug?
Posted by Chen Lei at 7/24/2006 5:17:14 PM
Hi, I used these codes to draw a 100mm line: Graphics g = e.Graphics; g.PageUnit = GraphicsUnit.Millimeter; g.DrawLine( Pens.Red, 50, 50, 150, 50 ); while I always got a line about 115mm on screen. Is there any error in these codes? If not, it's a very, very s...more >>

Font, MeasureString, PrintPreviewControl & C
Posted by Wacom at 7/24/2006 8:12:43 AM
Hi all I'm aving a bizarre behavior with the PrintPreviewControl. I use the MeasureString() method to get the char count of the string that lay on a rectangle, and then with the DrawString() I write that string into the rectangle. And this works perfectly if I draw the string to a Panel. Whe...more >>

Text width/height problem.
Posted by mehdi.mousavi NO[at]SPAM gmail.com at 7/23/2006 1:31:20 AM
Hi folks, Consider a text containing 200 characters (more or less) including and/or excluding the CR/LF within. I would like to compute the height of this text whenever it's width is limited by X pixels! i.e., what's the height of the mentioned text when it's being automatically word wrapped wi...more >>

For Bob Power, please repost the NativeWindowSample here
Posted by Andrea at 7/22/2006 12:00:00 AM
Hi Bob, could you please repost here the sample on using the Native Window with the EX_LAYERED style. Thanks a lot. Andrea...more >>

Image saved as File is locked
Posted by JezB at 7/20/2006 3:30:54 PM
I have an Image object (i) which I want to write to a file. This does work but when I later try to do something with this file I get errors, because I think the file is still 'locked'. I have to restart the application before the locks are released. I tried it first as: Image i = ... ; // c...more >>

I have an issue with an image getting corrupted upon scroll in a panel.
Posted by MurdockSE at 7/20/2006 12:32:48 PM
Hello all. I've followed some very nice articles at c-sharp corner and the code project to come up with an overlayed map image, with military unit icons on top (as well as text demarking the division name). My problem is that the images are so large ; I wanted to put them into a panel for scroll...more >>

metafile - rotate by 180 looses resolution when drawn
Posted by olaf at 7/20/2006 8:12:43 AM
Hi, we print metafiles using the PrintDocument. This works OK. But sometimes a metafile has to be rotated upside down, but when drawn into the graphics object the resolution of the result is not acceptable. It looks like its drawn into a small-resolution bitmap and then enlarged. Any sugges...more >>

Wellformed magazine
Posted by Shawn B. at 7/19/2006 9:47:11 PM
Greetings, I once asked (quite a while ago) if it was possible to get the source code to the magazine. Someone asked me which source code do I want? To me, most of the source code looked interesting highly educational. So I would say "all of it"? I'm trying to create a WYSIWYG music n...more >>

PrintDocument Measurement
Posted by Samuel Shulman at 7/19/2006 2:31:43 PM
Hi Is there a way to use centimetres rather than pixels to specify the location within the document? Thanks, Samuel ...more >>

PrintDocument Question
Posted by Samuel Shulman at 7/19/2006 2:30:24 PM
Hi Using the PrintDocument class to print in VB.NET, is there any chance that the number of pixels (I believe pixels are used) will change i.e. today the Height of A4 paper is 1600 pixels can that change one day to be more when better technology will be available (same as what happens to wi...more >>

Converting RGB to 1 bit-per-pixel monochrome
Posted by larry.hipp NO[at]SPAM gmail.com at 7/19/2006 1:51:35 PM
First off I must say "hats off" to Bob Powell. I have learned a lot from his online GDI + FAQ. With that being said I have been converting an image to a monochrome image with examples provided on his site. The example worked great until I upgraded to the 2.0 Framework. The code still works it ju...more >>

Font not found Exception
Posted by sp via DotNetMonster.com at 7/19/2006 12:44:58 PM
Hi, Lets say I have following line of code, System.Drawing.FontFamily fm = new System.Drawing.FontFamily("Times New Roman) and if "Times New Roman" font is not found in the system, then the above line will throw a error. Is there any way to effectively handle the above ex...more >>

Fake Translucency effect!
Posted by Özden Irmak at 7/18/2006 2:05:41 AM
Hello, In one of the controls I develop, I need to draw a fake translucency effect. This application has to be compatible with a part developed in VB6. I know that in GDI+ I can easily ceate a translucent drawing by applying an alpha value to the colors I use but I can't use that. In that ...more >>

How to get a softer color in C#
Posted by eduwushu at 7/14/2006 9:25:02 AM
Hi there im not very used to color tehory and i wanted to know if it is possible in some way to get from one color a softer version o f that color I was using a color to set it as the background color of listbox items but that version of the color is too strong. There is a way to obtain progr...more >>

TextRender issue
Posted by Michael at 7/14/2006 7:56:12 AM
I am developing a form filling application that will typically have on the order of 200 input fields. In order to speed things up and save resources I am using a single set of controls (textbox, combo, etc.) to handle the active input field and drawing the rest of the fields on the form. ...more >>

loding DB image to System.Drawing.Image
Posted by Kenny M. at 7/13/2006 2:41:03 PM
Hi I'm using a snippet of code to make Zoom of images; I'm recovering the images from a database not from a physical directory in the server (because my app is in a hosting) Usually I load the image to mi control in this way: btnMainImage.ImageUrl = "readrealimages.aspx?ProductID=" + ID...more >>

SetClip and GraphicsPath...bug?
Posted by Kieron at 7/13/2006 11:09:09 AM
Hi, I'm using a GraphicsPath via the SetClip method on a Graphics object, when I do this it seems to work for a while and then the GraphicsPath becomes invalid (I'm caching them to prevent re-creating them each time). This can occur while simlpy doing a scroll/ zoom or even drawing edges arou...more >>

newline in tooltip not working as advertised
Posted by Lee Crabtree at 7/13/2006 10:48:40 AM
I have a UserControl I've created that needs to show a tooltip. So I popped one down in the Designer. When I go to show it, I set the text as needed, and it pops up. But no combination of characters, methods, or voodoo sacrifices will entice this tooltip into displaying newlines as actual...more >>

WYSWYG Text editor using righttextbox and GDI+
Posted by Chris Evans at 7/13/2006 6:57:02 AM
Hi All, I'm trying to create a WYWYG texteditor in my application. At preset I am allowing the user to draw a rectangle (the bounds of the text) then dynamically adding a richtextbox to the form with the bounds of the draw rectangle. The user then types in and edits the text accordingly. ...more >>

Setting printer defaults
Posted by JB at 7/13/2006 2:19:02 AM
I have a program that prints a normal page via the print dialog. When the print dialog opens, and gives the user the chance to select the printer, I want to be able to default the page size to either A3 or A4. Is this possible? Because at the moment it just defaults to American Letter sta...more >>

GDI+ only printing top left corner of image
Posted by Donald Shepherd at 7/12/2006 5:53:25 PM
Hi all. I've got a project where I render a small bitmap (22 pixels x 22 pixels) using GDI+. This works fine on normal displaying and print previewing, but when I try to print it only the top left corner is printed. The call I'm using to draw the image is the following: myGraphics.DrawImage...more >>

How to paint 4 panels on a form separately at the same time without flicker
Posted by vahid.xplod NO[at]SPAM gmail.com at 7/12/2006 5:49:14 AM
hi, i've got a big problem with painting 4 or more than 4 control such as panel on a form. i have 4 panel that their width and height is 3000px on form and also a hscrollbal control that when i move the scroll bar the 4 panels move with it. but my problem is when i want to paint a grid on the ...more >>

Capturing Panel and Form contents.
Posted by Shane Story at 7/11/2006 10:54:55 PM
#1 I have a panel that I have drawn to. I was wondering if there is an easy way to capture the panel to a bitmap? Or will I be forced to redraw everything to the bitmap? #2, can I easily take a snapshot of the client area of a child window? Thanks, Shane ...more >>

PaletteMode equivalent
Posted by batesy67 NO[at]SPAM gmail.com at 7/11/2006 4:00:21 PM
Hi All, I am in a bit of a bind, i have an application that is always on top. Now this will sit on top of another application that must be run in 256 colours (legacy control systems app -- yuck). Now when the top application has focus the colours on the bottom application stop flashing, and it ...more >>

Differences between e.graphics.drawstring and e.graphics.fillpath
Posted by Jason James at 7/11/2006 12:54:38 PM
Hi, I am using a graphics path to house a string that I want to rotate by 180 degrees whilst leaving other strings unchanged on my printed page (hence I have used the graphics path and not e.Graphics.TranslateTransform(0, 0, MatrixOrder.Append) to rotate my string). I have managed to solve...more >>

Font fallback for Unicode characters
Posted by Didactylos at 7/5/2006 10:53:20 PM
The DrawString documentation is quite clear that font fallback exists - you can disable it with a StringFormat flag. However, I'm unable to take advantage of it. This question was asked a couple of years ago by someone else, but never got a reply. What I want to do is draw a string in a par...more >>

Drawing 3-D Border
Posted by vikash NO[at]SPAM nagarro.com at 7/4/2006 7:41:20 AM
Hi, I have the query on how can i draw the 3d border around the Shpaes (Rectangle or circle) added to windows forms using the GDI+ I was trying with ControlPaint.Draw3DBorder but it fills the shape with COntrol Color. THnaks Vikash ...more >>


DevelopmentNow Blog