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

Filter by week: 1 2 3 4

3D modelling in opengl and c#
Posted by Rameshika at 2/29/2004 11:11:06 PM
Hi All I am new to 3D modelling in VISUAL .NET C#.I am planning to draw the entire roof (showing the roof material, roof angle, roof shape,ceiling shape, ceiling material) of the house and planning to use OpenGL. Please let me know whether I can use opengl with C# and also how to add referanc...more >>


Transformation of World coordinates to screen coordinates
Posted by Bruce Schechter at 2/29/2004 7:14:25 PM
I am creating a custom control, "Graph", which will draw a set of graphs of data on an (x,y) coordinate system. The max and min values of both x and y and determined on the fly based on the specific range of data being plotted. I am (for my first time) using GDI+ to do the World coordinates to...more >>

unsopported SizeF in .net compact? (determine label text size)
Posted by Jacco at 2/29/2004 4:15:14 PM
I wanted to see if a texts fits into a label and I created this code: With lblOptionC1 Dim gfx As Graphics = picMainScreen.CreateGraphics Dim FontSize As New System.Drawing.SizeF FontSize = gfx.MeasureString(.Text, .Font) But the line "Dim FontSize..." results in an error which sa...more >>

System.OutOfMemoryException: Out of memory.
Posted by versteijn NO[at]SPAM 538mail.nl at 2/29/2004 1:02:47 PM
Hello all I have a ASPX file called scaleimage.aspx that scales my images down to a given width. This page is used very much in web project I am working on. But due to the large size of the images I randomly get [X] images (error) in Internet Explorer. When I open one individual image at th...more >>

PageUnit = Inches - that's not what I'm getting
Posted by FinallyInSeattle at 2/28/2004 3:51:34 PM
I've started experimenting with coordinate systems and created a very simple form with the following paint event. private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { Pen bluePen = new Pen(Color.Blue,1/e.Graphics.DpiX); e.Graphics.PageUnit ...more >>

Rectangle with curved corners
Posted by Eric V at 2/28/2004 12:56:08 PM
Hi. Whats the easiest way to draw a rectangle with curved corners Eric...more >>

How to Rotate about an origin
Posted by James at 2/28/2004 12:26:04 AM
Does anybody knows how to rotate about an origin with gdi+. I got a piece of code that rotates, however it rotates everywhere except the origin. g.RotateTransform(10); g.DrawRectangle(pn, 10, 10,200,40); The above code works except that it doesn't rotate about the origin. Can somebody plea...more >>

Possible memory leak in GDI+ PictureBox?
Posted by Ken Varn at 2/27/2004 6:12:19 PM
I have a series of PictureBox controls that are created by my Windows Forms class. The PictureBox.Image is repeatedly assigned an image in a thread while the containing window is displayed. The image refreshes as expected and everything seems to work ok. When the window is closed however, I ...more >>



dynamic thumbnail code is locking images on the server
Posted by CJ at 2/27/2004 3:36:03 PM
I have some ASP.NET code that I use in a ASP 3.0 photo gallery application to create dynamic thumbnails. So that people whos servers don't have a classic asp image component can still have true thumbnails. I call the aspx page from .asp pages with a <IMG> tag anyway... it works pretty good ...more >>

Reading Exif Data Without Loading the Image into Memory
Posted by bencarleski NO[at]SPAM yahoo.com at 2/27/2004 12:38:53 PM
I know that using an Image object, metadata can be accessed through the PropertyItems array. My problem is that I am trying to index a large number of large images, and having to load the image every time I need to access its metadata starts to take its toll on memory, as well as not being the ...more >>

Movie to Thumbnail
Posted by db at 2/27/2004 12:17:38 PM
In explorer you can change the view setting to thumbnails, and you get thumbnails even from movies. I want to do the same from asp.net. I want to create 'on the fly' thumbnails from some mpg movies, but I don't know if that's possible from asp.net. Who can help me with this? ...more >>

Color transformation
Posted by Mariyan at 2/27/2004 12:09:41 AM
Dear Sirs, I make a gobelin creating program just for fun. The idea is simple. I have an image with several thousand colors and a DMC (the best crewels for gobelin embroydering) color palette whic contains 453 colors. My question is: How to convert each color from the original image to the mo...more >>

Solid brush with ARGB color produces dither on enhanced metafile (EMF)
Posted by google NO[at]SPAM phildavidson.com at 2/26/2004 5:57:44 PM
(This question might pertain as much to GDI+ as to drawing in the .NET drawing framework.) I'm working in C#, drawing to a Graphics object initialized by a handle of an enhanced metafile. When filling a path with a brush created by SolidBrush sb = new SolidBrush(FillColor); g.FillPat...more >>

Measuring characters - .NET bug?
Posted by Judah at 2/26/2004 1:56:05 PM
The API cal StringFormat.SetMeasurableCharacterRanges(CharacterRange[] will throw an Overflow exception if the CharacterRange[] parameter is greater than 32 elements long. For instance, the following code will throw an exception CharacterRange[] ranges = new CharacterRange[33]; // anything > 3...more >>

Bitmap.FromHBitmap
Posted by Ken Tucker [MVP] at 2/26/2004 11:17:48 AM
Hi, I am trying to recieve an image from a digital camera. I get = back a pointer to the image. When ever I try to use bitmap.fromhbitmap = I get an generic gdi+ error. =20 Ken...more >>

Use of Bitmap.LockBits
Posted by Dave Humphrey at 2/26/2004 6:41:07 AM
I have written a client library and custom WinForms Control to connect to a network host that sends graphic information, which is then drawn by the client. Basically the server sends pixel colour values over the wire as byte values (i.e., the pixel RGB colour values are sent as 8, 16, or 32 bits). ...more >>

Rectangle - newbie question (VB.Net)
Posted by Andy Peters at 2/25/2004 8:41:05 AM
Hi all I'm using vb.net I want to draw text using the Rectangle object, but I want to draw lots of items of text at lots of different places on the screen. I don't want to create lots of rectangle objects though. Can I just instantiate one rectangle object and change its properties (x,y,width, he...more >>

Unable to use AllPaintingInWmPaint, and flickering
Posted by Matthew Judd at 2/24/2004 4:21:18 PM
I have created a UserControl, that has some fairly intensive graphics operations, although not what I would think as being too intensive. I basically have a multi line text display that flips between different text messages. When it changes between text messages there is a noticable flicker as it pa...more >>

GraphicsPath.Widen always rounds up to next integer?
Posted by at 2/23/2004 9:53:25 PM
I'm trying to use a GraphicsPath to do a hit test on a line, but calling Widen seems to always round up to the next integral size. That may be fine when drawing with PageUnit == Pixel, but it is horrible when using PageUnit == Inch. Create a new C# Windows Application, and paste the code belo...more >>

grid world and discrete (aliased) lines
Posted by Francois Vanderseypen at 2/23/2004 8:53:17 PM
Imagine a discrete 2D space of any size. Say, you have a 100x100 pixels (.net) panel and you have discrete cells of 10x10 pixels. Thinking e.g. of the game of life. I would like to draw a line in this discrete space, but it can't be smooth, it has to be aliased or in a block-form corresponding t...more >>

Drag and Drop
Posted by cody at 2/23/2004 6:37:23 PM
I need to implement some kind of panel where the user can put rectangles on it, move them around and resize them. Is there an API for that or do I have to code the whole stuff by myself? I don't know anything about drag&drop yet. -- cody [Freeware, Games and Humor] www.deutronium.de.vu |...more >>

Create animated gif in .NET Compact Framework
Posted by Picco Chu at 2/23/2004 3:40:26 PM
Hi all! I want to create animated gif from JPEGs in Smartphone 2003 using .NET Compact Framework. How can I do so? I have been trying to look for answers for days and still can't find anything. Please help~ ...more >>

Gradient with more than 2 colors
Posted by Tom J at 2/23/2004 12:47:53 PM
Hi all- How would I go about creating a gradient brush that has more than 2 colors? ...more >>

Drawing Text On Path
Posted by Andrew Deren at 2/23/2004 11:46:06 AM
Is there an easy way to draw a text on a path? Specifically if I have a curve and I want this text to go along that curve, how can I do that? Thanks....more >>

A Graphics object cannot be created from an image that has an indexed pixel format.
Posted by Jack at 2/22/2004 2:05:14 PM
Hello, I am getting this when trying to load a memory stream and edit it. Here is the code: Imports System.Data Imports System.Data.SqlClient Imports System.Configuration Imports System.web Imports System.Drawing Imports System.Drawing.Imaging Imports System.Drawing.Text Public Cla...more >>

Bitmap Constructor
Posted by Jonathan Allen at 2/20/2004 11:11:52 PM
Could someone tell me what this constructor is for? (preferably with a code sample) Initializes a new instance of the Bitmap class from a specified resource. [Visual Basic] Public Sub New(Type, String) Jonathan ...more >>

How do I load a Byte array into a memory Stream?
Posted by Jack at 2/20/2004 9:07:18 PM
Hello, How do I load a Byte Array Into a memory Stream? Thanks in advance for all you help and time, Jack ...more >>

Can't get print margins right @ printer?
Posted by chris vella at 2/20/2004 7:50:22 PM
I am sure it is something simple but for the life of me I can't get a PrintDocument to print correctly at the printer. The print preview dialog doesn't have any problems with the margins and displays the pages to be printed perfectly. However when printing to a HP laser jet, the right margin is ...more >>

Positioning text in non-rectangular controls
Posted by J.Marsch at 2/20/2004 5:46:49 PM
Hello all: I'm building my first non-rectangular control, and so far, everything is going pretty well. I have one fine tuning point that I would like a hint for: This control is a rounded button, and I want to support all 9 text alignments for the Winform TextAlign property. I'm having ju...more >>

gantt chart in asp.net
Posted by rajani at 2/20/2004 10:30:38 AM
Hi , How do we create gantt chart in asp.net?. Any code samples or url will help. I don't want to use any third party components. regards gdc ...more >>

Pen's DashPattern property memory problem
Posted by tristan_sehgal NO[at]SPAM yahoo.co.uk at 2/20/2004 10:06:31 AM
Hi, When I create a new Pen and take a look at the DashPattern property it reads <System.OutOfMemoryException>. Which is a problem because I need to loop round an array of pens checking their DashPattern array lengths. I can't even test the DashPattern property to see if it's null. I ...more >>

Drawing different roofs
Posted by Rameshika at 2/19/2004 11:41:05 PM
Hi All, I want to draw roof shapes in my program using user entered roof angle, height, width, length etc. I develop this application in C#. I'm new to drawing and need some guidance to start off. I also want to see the possibility of drawing 3D models in C#. where shoudl i start? what methods and ...more >>

New icon file
Posted by Julian Hershel at 2/19/2004 9:22:34 PM
Hi. I am using vs.net to create some icons for my applications. When creating these icons is it possible to copy the image from one of the vs.net toolbar buttons and paste it in my new icon file? I want to create an icon that is slightly different from one of the vs.net icons. Thank you. ...more >>

Invalidated Regions?
Posted by cody at 2/19/2004 7:48:23 PM
When overriding OnPaint to do custom drawing, how can I get the invalid regions of the control to paint? -- cody [Freeware, Games and Humor] www.deutronium.de.vu || www.deutronium.tk ...more >>

Geting Rid of Type and Size of a Font
Posted by Asela Gunawardena at 2/19/2004 10:49:08 AM
Hi I want to Expose a Font Property of my Control to the developper. when i do this the normal Font selection dialogue box appears which works fine, but the problem is there you get to select the Font size as well, which has no relevance to my Control. so can someone please tell me a way to ge...more >>

19 Feb 2004, How to access VB.net applications thr' PDA's
Posted by Sham Yemul at 2/19/2004 7:41:35 AM
Hello, I recently started development in Vb.net. I am about to finish a product in VB.net Database Applicatio, Sql Server as Backend. I read little about wireless technology and PDAs. Is it true that one can access VB.net forms/applications running on Server, using PDAs ? If so please te...more >>

ScaleTransform Moves text instead of scaling
Posted by Al at 2/19/2004 1:26:05 AM
I need to scale the size of a barcode that I'm printing along the vertical axis. When I apply the ScaleTransform method to the Graphics object the result it the barcode is moved instead of resized. I am using the following code to achieve this: [VB.NET] deviceContext_.ResetTransform() device...more >>

white bitmap is not 100% white
Posted by Jacco at 2/19/2004 1:12:04 AM
Hi, When I display a picture and load a bitmap with whites in it (in fact, a big white area), and I compare thet white with the full white of the panel behind it, I see that the bitmap is not exactly white. Is there some color conversion in the PDA device ? How can I force a full white pixel i...more >>

how do i apply colors to tabs, title bars and other controls in C#
Posted by designer at 2/19/2004 12:49:39 AM
I'm trying to apply color scheme to the forms in C# .NET. I couldn't find any solution for tabs and title bars. It doesn't display the bgcolors that are applied to these controls. --- Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest Community Website: http://www.dotnetjun...more >>

GDI+ drawn Lines and Scrollbars
Posted by Hannes at 2/19/2004 12:46:05 AM
Hello I'm Hannes on a form with GDI+ .DrawRectangle()-method drawn Rows I want to synchronize th vertical scrollbars with the rectangles. Each time I use the scroll-slider a whole rectangle should be move and not the predefined scroll-units. The rows contain e.g. one image per row or text-blocks....more >>

how to convert a colour Bitmap image to a 1bpp (b/w) bitmap image??
Posted by wzy at 2/19/2004 12:10:43 AM
who can help me?thx! ...more >>

Convert Image to Icon
Posted by Marcin at 2/18/2004 9:36:11 AM
Hi I have imageList and I want to convert imageList.Images[2] to System.Drawing.Icon How can I accomplish that? ...more >>

Mixing Color
Posted by MikeH at 2/18/2004 4:41:05 AM
Imagine a gradient of 2 colors, say white thru Systemcolors.ActiveCaption. Is there an algorithm that will give me the color part way along that gradient What I want to do is lighten Systemcolors.ActiveCaption (or any other color) by a given amount Thank you...more >>

PrinterSettings Collate
Posted by Kevin Ortman at 2/17/2004 10:41:05 PM
Has anyone figured out how to print collated pages from C# ? (two sets of prints with the pages ordered 1 2 3, 1 2 3 instead of the default ording 1 1, 2 2, 3 3). I tried using the PrinterSettings.Collate property, but it does not seem to have any effect whatsoever. We've tested both .net fra...more >>

Need to write Text Accross an Image from a SQL Database
Posted by Jack at 2/17/2004 2:49:16 PM
Hello, I am tring to write text accross an image from a SQL Database. If any one has an example of this please let me know. In VB.NET if possable. Thanks in advance for you help and time, Jack ...more >>

Printing & Saving contents of scrollable window
Posted by lori.pearsall7 NO[at]SPAM gte.net at 2/17/2004 11:48:51 AM
I'm doing a diagramming product of sorts that will be comprised of "nodes". These nodes can be square, have rounded corners, etc. Within these nodes, there can be either text (rich text) or an image. I had intended on using an owner-drawn control to accomplish the outline and add a rich text b...more >>

Simulate panel scrolling - auto scrolling
Posted by utku at 2/17/2004 10:21:06 AM
My Q is related to "How do I manipulate the graphics on screen?" tutorial on http://www.bobpowell.net/gdiplus_faq.htm. I programmed a similar user interface but i can't simulate scrolling on the panel when the figures on that panel is dragged out of screen. Because usually windows handles thing...more >>

Flood fill
Posted by cody at 2/16/2004 4:58:06 PM
Is there a method which provides a functionality like Flood-fill, that is fill a region bounded with a specific color, just like the fill tool in MSPaint. -- cody [Freeware, Games and Humor] www.deutronium.de.vu || www.deutronium.tk ...more >>

C# and image capture
Posted by <.> at 2/16/2004 3:24:47 PM
Hi, What is the best way to capture images from a FireWire DCAM camera? Is there any support for the DCAM protocol anywhere for C# on Windows 2000? If I understand it right TWAIN = legacy and not to be used, STI is the old driver model and WIA is the new model but only on XP and later. ...more >>

EMF Problem
Posted by Sujith Manuel at 2/16/2004 1:38:04 PM
Hi All, I have some doubts regarding Metafile class in .Net Framework. I tried to save the metafile object to a disk file as shown below: _metafile.Save("C:\\delete\\Test.emf", System.Drawing.Imaging.ImageFormat.Emf); if I open the saved EMF file in notepad, the header values indicate tha...more >>


DevelopmentNow Blog