471,338 Members | 993 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,338 software developers and data experts.

Image Handling for Noobies

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
2 1864
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
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.

Similar topics

3 posts views Thread by dave | last post: by
8 posts views Thread by OysterCracker | last post: by
3 posts views Thread by Sachin | last post: by
5 posts views Thread by Thaynann | last post: by
2 posts views Thread by HackerSpiff | last post: by
4 posts views Thread by =?Utf-8?B?UGF0cmlja1M=?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.