Click to See Complete Forum and Search --> : VB.NET: An Instance of Bitmap Object


owenrb
May 26th, 2003, 10:52 PM
Hello there,

I have a question here regarding System.Drawing.Bitmap instansation. Every time we create an instance of this object using objImage = New System.Drawing.Bitmap(filename := imagefilepath), does it (already) loads the entire image data and information?
I am just concern with this matter, because all I want to do is get the dimension (width and height) of the image only, that I believe could be found in the image header information. And I don't want to load the (tail) image data information for this specific task.
Any Information or advice you may have will be very much appreciated.

Thanks in advance.


Regards,

Owen/

Craig Gemmill
May 27th, 2003, 12:19 PM
I would assume that it does indeed load the entire bitmap into memory. You can check by simply watching the memory usage in Task Manager (NT only).

I have a class that does exactly what you need, I just have to find it. :) I will edit this post once I do.

EDIT: Well I thought I did.