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 > may 2005 > threads for may 22 - 28, 2005

Filter by week: 1 2 3 4 5

How come Image.FromFile() member function is not avaiable?
Posted by Gravity at 5/28/2005 12:00:00 AM
Hi, Refering to the title, I am using Visual Studio .NET 2003, WInXP Pro SP2 to develop C# on PocketPC. To me surprise, I cannot locate the member function, FromFile( ) from the System.Drawing.Image class. My VS only show 8 members functions from the class; (1) Dispose (2) Equal (3) ...more >>


Error in Replace Colors In Image and Save it!
Posted by Prasad Dannani at 5/28/2005 12:00:00 AM
Hi, I created a Windows Application which accepts the filename to open and two color values. The Application opens the given bitmap file and replaces the first color with second color. I done by traversing through the pixels. After completing the whole process i have to save the image to ...more >>

Saving Grayscale image as real grayscale
Posted by bert at 5/27/2005 12:00:00 AM
I want to save an image which I converted to grayscale as a real grayscale image. When I save the image and open it in photoshop, the mode is RGB color/ 8bit. I want the mode to be grayscale. I've been searching for a solution for my problem for some time now but I can't seem to find an ...more >>

Invalidating a region and having only that region drawn
Posted by Andrew at 5/26/2005 6:57:01 PM
Hello, In my application I perform all the drawing operations from within the form's OnPaint method (the form is ultimately a TabPage derivative) ie protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); //the base class LayerView.OnPaint handles things like AutoScr...more >>

Handling "hide underlined letters until I press ALT" setting
Posted by Scott McChesney at 5/25/2005 11:13:41 AM
Folks - I've done some Google searches and come up with nothing. If this has been addressed already, please point me in the right direction. I'm creating a custom Label control for one of my projects, so I can utilize text trimming. I'm inheriting from a standard Label control and overri...more >>

onPaint handler
Posted by YYZ at 5/25/2005 11:13:31 AM
Is there anyway to get an onPaint handler for a textbox? In VB 6 I would subclass the control (never done it with a textbox, but I think it would have worked), but I don't think I can do that here in .Net. Matt ...more >>

Scrolling again
Posted by Steve Magoon at 5/24/2005 12:38:58 PM
Hey, Could someone help me with the following code? I would like ObjectB to remain stationary on the panel while scrolling ObjectA, but I can't figure out how to do it. If I'm saving the Graphics state, it seems to me that any scrolling should not affect ObjectB when I draw it, but only Obj...more >>

Bitmaps and graphics
Posted by Bilal Abbasi at 5/24/2005 12:30:14 AM
Is there a way to create a Bitmap object and draw strings within it. Graphics g = pic1.CreateGraphics(); Bitmap b = new Bitmap(100,100, g); does not work. Or do I have to get into the nitty gritties of the Font object find the position of each pixel in it and use the SetPixel method??? ...more >>



Complex Shapes Over other Windows (I can see it being done!)
Posted by Phil Jones at 5/24/2005 12:00:00 AM
Has anyone seen a widget app called "Konfabulator" (www.konfabulator.com). Interestingly enough it renders the new mac Tiger widgets on a Windows PC. What's most interesting is that the widgets are complex, semi-transparent shapes that reveal the windows and desktop behind them (for instance ...more >>

Appending one image to other
Posted by Saurabh at 5/24/2005 12:00:00 AM
Hello All, I am new to the image processing things, hence this question might be a bit silly but I could not find any obvious solution.... I have an image object which is to be shown in a picturebox. The picturebox can actually change the size depending on the anchor / docking of the form....more >>

Copying Vector Image
Posted by Mike King at 5/23/2005 12:01:02 PM
I have created a .NET control, and I want to add the ability to copy/paste the image of the control to MS Word. The tricking thing is that I want the vector image not a bitmap. Does anyone know how to do that? Bitmap PlotBitmap = new Bitmap(500, 500); Metafile mfile = (Metafile) ((Image)...more >>

GDI+ Flat API, High-Resolution Drawing?
Posted by george NO[at]SPAM neosoft.com at 5/23/2005 11:11:33 AM
Using the GDI+ Flat API, I am able to draw at 96dpi resolution to a VB6 PictureBox control, and (awkwardly) dump the image to gdi+ supported file formats, like tif. I need to create higher resolution (say 360dpi) tif files. It seems that .Net can create a high-resolution, in-memory bitmap obj...more >>

GDI+ Flat API, Odd Issue with Dash and Smoothing
Posted by george NO[at]SPAM neosoft.com at 5/23/2005 11:01:06 AM
I'm using the GDI+ flat API version 5.1.3102.2180 (latest/good version? The SDK shows 5.1.3102.1360!). When I attempt to set smoothing to anything other than AntiAlias, while using a dash pattern other than solid AND the pen width is 1 pixel wide, the pattern is in inches rather than in pixels...more >>

exception while Creating a bitmap from xml file
Posted by jay jay via .NET 247 at 5/23/2005 10:16:12 AM
Hi, I am trying to create a image from an xml file. Xml file has string representation of a image. here is the code snippet: DataSet ds=new DataSet(); ds.ReadXml("Northwind.xml"); string pic=ds.Tables[1].Rows[0][3].ToString(); byte[] str=Encoding.UTF8.GetBytes(pic); MemoryStream s...more >>

Problem using GraphicsPath
Posted by Richard L Rosenheim at 5/23/2005 7:56:43 AM
When I use the following code: myFont = new Font("Tahoma", 24, System.Drawing.GraphicsUnit.Point); GraphicsPath pth = New GraphicsPath(); pth.AddString("Sample", myFont.FontFamily, (int)myFont.Style, myFont.Size, new Point(x, y), StringFormat.GenericTypographic); ...more >>

3D transformation
Posted by Lebesgue at 5/23/2005 12:00:00 AM
Is it possible to "emulate" 3D transformation using GDI+ somehow? I would like to rotate a string around vertical axis. I know how to apply rotation transform to Graphics object, but only as 2D transform. I think this will not be possible directly, but hope there is a chance to do it using some...more >>

Create Bitmap from byte[]
Posted by Ondrej Sevecek at 5/23/2005 12:00:00 AM
Hello, I have a byte[] array containing values of 0-255 representing gray levels of a picture. This has no common format (.bmp, .jpg, ...) it only stores the bytes, one per a pixel. I converted it from original matrix byte[,] so I know its real dimensions. Now, I would like to display thi...more >>

Scroll panel image
Posted by Leif Eirik Olsen at 5/23/2005 12:00:00 AM
Hi all, On a panel where I initially draw a Line, I would like to : Copy the image of the Panel Rewrite the copied image back to the same panel, but 1 pixel to the left of it origin position. Feel like I've tried everyting, but nothing seems to be correct. I'm sure I'm missing something ob...more >>

DrawImage and ImageAttributes to show pixelized scaled bitmap
Posted by Ondrej Sevecek at 5/23/2005 12:00:00 AM
Hello, I have a bitmap. I use DrawImage() method to show the bitmap. It can scale the picture according to the destination rectangle.. DrawImage( image, scaleToRectangle, 0, 0, imageWidth, imageHeight, Pixel, imageAttributes ); The scaled picture is smooth and its origin...more >>

Invalid parameter used exception while creating bitmap
Posted by jay jay via .NET 247 at 5/22/2005 2:04:24 AM
Hi, I am trying to create a image from an xml file. Xml file has string representation of a image. here is the code snippet: DataSet ds=new DataSet(); ds.ReadXml("Northwind.xml"); string pic=ds.Tables[1].Rows[0][3].ToString(); byte[] str=Encoding.UTF8.GetBytes(pic); MemoryStream s...more >>

Same Error
Posted by jay jay via .NET 247 at 5/22/2005 12:08:55 AM
(Type your message here) -------------------------------- From: jay jay hi got the same error, byte[] imByte=Convert.FromBase64String(Imagetext); Bitmap b = (Bitmap)Bitmap.FromStream( new MemoryStream(imByte)); // This line is throwing error. Somebody please help me. ---------------...more >>


DevelopmentNow Blog