By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,086 Members | 1,442 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,086 IT Pros & Developers. It's quick & easy.

Image Handling for Noobies

P: n/a
From a server process (no display access) I would like to take an image (most
likely GIF or JPG) as a blob from a DB and rummage around the pixel values.
Are there classes in the .NET framework that will enable me to decode an
image blob like this?

What classes should I look at for handling images on a pixel-bytes / color
table kind of level?

Thanks.
Jul 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

Not sure what you mean by image blob, but you can retrieve raw byte data from a DB, feed it into a MemoryStream and create an Bitmap using Image.FromStream.

You can use Bitmap.GetPixel/SetPixel to access individual pixels, or if performance is an issue, read up on Bitmap.LockBits and 'unsafe' code blocks.

On Wed, 11 May 2005 18:34:05 +0200, HackerSpiff <Ha*********@discussions.microsoft.com> wrote:
From a server process (no display access) I would like to take an image (most
likely GIF or JPG) as a blob from a DB and rummage around the pixel values.
Are there classes in the .NET framework that will enable me to decode an
image blob like this?

What classes should I look at for handling images on a pixel-bytes / color
table kind of level?

Thanks.


--
Happy coding!
Morten Wennevik [C# MVP]
Jul 21 '05 #2

P: n/a
HackerSpiff

Have a look at Bob pages
http://www.bobpowell.net/

I hope this helps,

Cor
Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.