Groups | Blog | Home


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 2007

Filter by week: 1 2 3 4

Dispose resource when in different controls in use
Posted by Rolf Welskes at 2/28/2007 12:04:00 AM
Hello, I have the following problem: I have two controls ctrlA, ctrlB, both use a font and have a Font-Property, for example like TextBox. Now I have ONE Font f and write: ctrlA.Font = f; ctrlB.Font = f; later I have to other fonts f01, f02 ctrlA.Font = f01; ctrlB.Font = f02 No...more >>

What does ReleaseHrgn do?
Posted by mandy.montmorency NO[at]SPAM gmail.com at 2/26/2007 11:28:39 PM
....and why do we need to pass the HRGN when it is sured stored internally somewhere? ...more >>

Partial zooming using transform
Posted by Andreas at 2/26/2007 12:00:00 AM
Hi, Im developing a small control which could be compared to Bob Powell's ZoomPicBox but with a few differences. My control draws an image inside a 1px frame and also adds a dropshadow to it. Im debating on how to implement the Zoom and Pan features in this control. I can use the ScaleTr...more >>

C# Irregular shaped user controls.
Posted by dr at 2/25/2007 6:29:01 PM
C# Irregular shaped user controls. How to make usercontrol have transparency key for its background image? I want to have irregular shaped user controls on my form. like a funny shaped button. This works fine for irregular shaped forms becuase they have a transparency key field, but user co...more >>

forcing a formfeed with PrintDocument
Posted by Dave Cullen at 2/25/2007 11:22:13 AM
Hello - I'm using VB.NET 2005 and trying to get a handle on the PrintDocument thing. I can print my document OK, but I need to know how to force a page break. In the old days I'd simply tack a form feed CHR(12) at the spot where I want the break, but PrintDocument ignores that and prints a ...more >>

GDI+ seems unsuited for large images...
Posted by James Maeding at 2/25/2007 8:38:14 AM
I have developed subs to resample images, as well as all kinds of other things. I deal with scanned exhibits that are typically 36" wide by whatever long. I have one that is 115 inches long. If this is scanned at 600 dpi, I get a tif with pixel dimensions of 21000 x 69000. I do understand the id...more >>

a generic error occured in GDI+
Posted by jay.meerdink NO[at]SPAM gmail.com at 2/23/2007 8:12:54 AM
I have a simple program private void butLoad1_Click(object sender, EventArgs e) { this.pic1.Load("vv_s01.gif"); } loads a gif file into the image of a picturebox. Then private void butSend_Click(object sender, EventArgs e) { ...more >>

Ink.ClipboardCopy works under Tablet PC Development Kit - but fails on tablet PC
Posted by Christian Stapfer at 2/23/2007 12:00:00 AM
I am using IronPython to put program generated ink drawings onto the clipboard. This works great on my desktop PC (on which .NET Framework 3.0, IronPython 1.0.1, and the XP Tablet PC Edition Development Kit Version 1.7 are installed). The same code fails, however, on a tablet PC (on ...more >>



How can i be able to do something like this in .NET
Posted by Reymar Gooding at 2/23/2007 12:00:00 AM
Hi, I was wondering how would I be able to get a brush and draw over an image that would give an effect similar to this: http://img338.imageshack.us/img338/8319/f9bfe00ee782c7812265lpg5.jpg Also, how would I be able to have an edge effect like this one: http://img291.imageshack.us/img291/22...more >>

Bitmap Class Rendering Inconsistently
Posted by Corey Ellsworth at 2/22/2007 5:06:21 PM
I have coded a class that uses the bitmap class to generate graphics from True Type fonts. I'm using it primarily to render 3 of 9 barcodes from a True Type font. When the exact same code is used to generate a barcode from some Web servers the barcodes print nice and clean. From other Web s...more >>

Measure an RTF string
Posted by Hamed at 2/21/2007 4:33:55 PM
Hello I have a RichTextBox in my .NET application. Is there a way to measure the length of the appeared string in it? I mean is there something like Graphics.MeasureString method that accepts MyRichTextBox.Rtf as the input instead of a simple text? Thanks in advance Hamed ...more >>

EXIF Properties, .Net and Digital Image Library
Posted by gdgass NO[at]SPAM gmail.com at 2/21/2007 1:47:26 PM
Hi, I'm in the process of developing an app to scan and archive photos based upon the EXIF/Photo Keyword property. One of the requirements is that the Photo's keywords be editable via Digital Image Suite 2006 Library . Then the app will look for a specific keyword, change the keyword to indic...more >>

Performance of drawing to my own control (Frank Hileman)
Posted by Andreas at 2/19/2007 3:36:01 PM
Hi, I'm doing alot of investigating about GDI+ performance and best practices to get the best possible performance in my application when rendering images. I've understood that the best thing to do it to work with 32bppPArgb internally in your application, i.e. if you load an image into you...more >>

draw cursor onto bitmap
Posted by James at 2/19/2007 2:39:45 PM
Hi, I am trying to draw a cursor (the currently active cursor onto a bitmap). I have a target Bitmap setup to draw into, I get the handle to the current Cursor using Win32 API GetCursorInfo(), then I am passing this HCURSOR into the constructor of a new GDI+ Bitmap. I was going to then draw...more >>

does anyone see what is wrong with my .gif download logic? no matter what image url i try it downloads a junk file that can't be opened in any paint p
Posted by dr at 2/18/2007 10:23:14 PM
does anyone see what is wrong with my .gif download logic? no matter what image url i try it downloads a junk file that can't be opened in any paint program. System.Net.WebRequest myRequest = System.Net.WebRequest.Create(url); System.Net.WebResponse myResponse = myRequest.GetResponse(); S...more >>

how to get the System.Drawing.Point of FormStartPosition, e.g. if i want to recenter the form on the screen at some point other then startup.
Posted by dr at 2/17/2007 9:24:39 PM
how to get the System.Drawing.Point of FormStartPosition, e.g. if i want to recenter the form on the screen at some point other then startup. ...more >>

Shear Image
Posted by Reymar Gooding at 2/17/2007 10:56:33 AM
Hi guys, I'm wondering how can i calculate the correct height and width to fit an image, after i perform a Shear to it? Thanks, Reymar *** Sent via Developersdex http://www.developersdex.com ***...more >>

GDI+ and WPF
Posted by John at 2/17/2007 12:00:00 AM
Hi there, Can anyone help me understand what the advent of WPF means for GDI+? Will GDI+ become obsolete or does continue to used for raster images etc.? Thanks in advance John ...more >>

how to split region data?
Posted by Kristopher Wragg at 2/15/2007 4:49:31 AM
Hi, I'm currently working on an application for my dissertation for my final year at University. I'm having a little trouble with the System.Drawing.Region class. The application is being designed to help create and study the use of Euler/Venn diagrams, the user can draw various shapes wh...more >>

Custom Zoom & Performance
Posted by Andreas at 2/15/2007 12:00:00 AM
Hi, I have a need to implement a custom zoom algorithm (to control the dimension of the scaled pixels) so I have turned to GDI interop to solve this. The zoom is being performed in a user control and I draw directly on the control surface. The zoom it self works just fine, but it's the perf...more >>

Loading gifs with transparent corners on form prod "black" corners
Posted by Eric at 2/14/2007 2:15:28 PM
Hello All, I am attempting to set the background image of a panel that fills the entire form a gif that has transparent corners. The alpha for all the corners of the gif is 0. Once the panel's Background image is set to the gif and the form is displayed, the transparent corners appear '...more >>

Change PaperSize on printing
Posted by Mauro D. at 2/13/2007 3:10:30 PM
Hi guys, i'm trying to print a collection of pages to a printpreviewdialog. Pages wants to have different PaperSize each other. I've tried to change PaperSize inside QueryPageSettings event handler but PageBounds and MarginBounds retain their old values. How can I do? My documents have ...more >>

Nested Transforms
Posted by Jeff at 2/12/2007 7:59:39 AM
I'm rendering several objects onto the surface of a form, and I want to allow my users to scroll and zoom in/out. Each one of my objects has a method called RenderToDC which accepts 1) the graphics object, 2) x location, 3) y location. Dim mx As New Drawing2D.Matrix(mZoomFactor, 0, 0, mZoomFa...more >>

Path union
Posted by Fabio at 2/11/2007 12:27:20 PM
Hi again Is it possible to join 2 GraphicsPath into a single one? I need a union of more pathes without the inner lines, i.e. if I have 2 ellipse that overlaps I'd like to have just the outlines of both (I hope I was clear :) ) Thanks. ...more >>

Advanced brushes
Posted by Fabio at 2/11/2007 12:15:16 PM
Hi all! Someone can tell me if it is possible to get a brus with a gaussian blur? And a radial gradient? And a radial gradient with blur? :) Thanks ...more >>

Confused about graphic file extensions
Posted by Frank at 2/10/2007 9:13:36 AM
Are the following all valid extensions for files read by windows? Are the paired ones equivalent? Is EXIF and extension or is it used in some other way? Thanks for any help JPG;JPEG TIF;TIFF ICO;ICON EXIF ...more >>

overflow or underflow in arithmetic operation / font initializatio
Posted by Caroline at 2/9/2007 12:05:01 PM
Hello, I have a web application that throws an error Initializing a font. The behavior is unpredictable, and occurs only in one form of my ap. I try to initialize a report The form contains two ActiveReport Graphs and several labels. I have another form with an Active Report graph a...more >>

how to draw graph
Posted by imran at 2/9/2007 1:37:47 AM
Dear all, I am developing web application using asp.net C#(Visual Studio 2005) I want to know Is it possible to to draw based on data. if possible please give me some link or Example. thanks...more >>

PictureBox zoom printing
Posted by Mauro D. at 2/8/2007 2:59:00 PM
Hi guys, i'm trying to print a picturebox image with the SizeMode property set to Zoom. With DrawImage I can't get the size of the image inside the picturebox because i get all of the displayrectangle instead. There is a fast method to do this? Mauro...more >>

Freehand Drawing with Zoom
Posted by Mostafa at 2/8/2007 2:09:32 PM
Hello, I am trying to make a freehand drawing application with zoom capability and a grid so that I can change each pixel by hand, much like the bitmap resource editor of Visual Studio. I have tried to use the ZoomPicBox component developed by Bob Powell with some modifications. I am still ha...more >>

Printing to PDF -- poor bitmap quality
Posted by Jeff at 2/8/2007 9:57:32 AM
I'm rendering text (DrawString) and images (DrawImage). The output looks great on screen and looks great when printing to a printer (both Laser and Inkjet). When printing to Adobe PDF (which is what my users will mostly be doing), the sections rendered using DrawString look great, but the im...more >>

Drawing boxes ( just like an Org Chart)
Posted by Ayo Ogundahunsi at 2/8/2007 9:30:16 AM
Hi, I want to be able to draw boxes and connect them with lines just like you will do in an organization chart and also allow the user to be able to move, drag & drop those boxes around. Is there any sample code anyone has (in C#) that can help me get started, or is there any book that can b...more >>

Need to convert bmp to pcl in vb.net
Posted by SBC at 2/7/2007 7:50:01 AM
I need to read a bitmap file containing a signature and convert it to a PCL file. I can print the bitmap to a file printer using the HP PCL driver and this produces a file that I can use. I am using the System.Drawing.Printing.PrintDocument object and setting the PrinterSettings to spe...more >>

Metafile in console application
Posted by benami NO[at]SPAM gmail.com at 2/7/2007 7:02:20 AM
Hi, I want to create a WMF/EMF file in a console application using C#, however, I failed to create an empty Metafile object. As much as I can tell, the various Metafile constrctors require an existing file or a IntPtr to a device context. As this a console application I do not have a form fro...more >>

How to use raster font
Posted by Mubashir Khan at 2/7/2007 4:42:53 AM
I am using VS2003 with 1.1 I have this font file xxx.fon and i would like to drawstring by using this font ...... i am unable to find any help on this while i googled ...... ur help is appreciated ...... ...more >>

Access to an old Well Formed Magazine Article
Posted by jhayworth at 2/6/2007 11:14:30 PM
I'm attempting to do a simple slideshow application. I came a cross this article by Bob Powell. http://www.bobpowell.net/WellFormed_April_2004.htm I could really use any information from the first article (Image Transitions) in that particular magazine. I couldn't find a way to subscribe...more >>

Setting alpha for entire bitmap
Posted by MLM450 NO[at]SPAM hotmail.com at 2/6/2007 9:04:13 AM
I want to make my entire bitmap 50% transparent when it draws. Is there a way to either... 1) set the alpha channels of all pixels in a bitmap object at once? 2) specify an alpha value just for drawing the bitmap? Thanks, Mike ...more >>

Graphics.DrawPolygon with Custom Dash throws Exception
Posted by Sebastian M. Rouaiha at 2/5/2007 11:56:30 PM
Hi. (I already posted this question in microsoft.public.dotnet.languages.csharp, but this one is updated) I have a problem. When drawing into a graphics context I sometimes get access violation exceptions and I can't figure out why. It seems to have to do with the use of custom dashes. If ...more >>

Shear image
Posted by P.Gagné at 2/5/2007 7:15:00 PM
When you use the Shear method, the 2 corners of the image are moved together and the image becomes a parallelogram. But how to shear the image by moving only a corner of the image? Or is there another method which do the job? Thanks...more >>

Huge images
Posted by Antimon at 2/4/2007 7:03:00 PM
Hi, I've been working on a website and i need to resize uploaded pictures and stuff. Everything works fine with Image.fromstream method but there seems to be a simple problem, I created a simple solid blue jpg file which is 10000x10000 pixel size. Only 500 bytes as its jpg. But if i upload that...more >>

Advice on Images and CF2 Please???
Posted by iKiLL at 2/2/2007 3:28:00 PM
Hi All, I am new to .Net and Compact Framework. So I have a really basic question for you all. I am building an application in C# for Windows Mobile 5.0 in VS2005 CF2.0 I would like this application to have some customizable features with out having to recompile. ...more >>

Antialiasing rendering of metafile images
Posted by Liviu Balan at 2/2/2007 11:50:51 AM
Since .Net 2.0 has more support for vector graphics (Metafiles) this can be put to use on a so called "resolution free" GUI. However a big problem appeared here. The rendered metafile object does not use antialiasing and as a result it looks pretty rough on the screen. As a simple test one ...more >>

Using TextRenderer MeasureText to find word position - any ideas?
Posted by jdlwright NO[at]SPAM gmail.com at 2/1/2007 7:31:30 PM
Hi, I need to draw some text using TextRenderer.DrawText, and to underline some of the words. Therefore of course I need to know where to do graphics.DrawLine(...). To begin with I figured out where the baseline was for each line of text using a loop like this; void ComputeBaselines...more >>

vb.net Multipage TIFF
Posted by Mike - mailshack at 2/1/2007 2:21:06 PM
Hello all. Newbie here looking for resources related to mulipage Tiff's in vb.net. My current plans are to capture PCL prints from and AS400 and convert those PCL's to multipage TIFF's. Any help will be greatly appreciated. Most commonly I am looking for direct answers like.. You cant...more >>

Image.FromFile and Image.FromStream(MemoryStream) Don't Tally.
Posted by TiVo at 2/1/2007 5:12:01 AM
I've written an app that takes in various format images from file and makes certain changes to the image. I eventually got it working using Image.FromFile: mOriginalImage = Image.FromFile(mSourceURL) but of course this locks the original until the bitmap is disposed of. Next I tried ...more >>


DevelopmentNow Blog