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

Looking for a better way to compress images.

P: n/a
I am looking for a better way to compress screen shot data.

Currently this line of code:
MyBitMapImage.Save(MyMemoryStream, System.Drawing.Imaging.ImageFormat.Jpeg)

Takes between 70-90 Milliseconds, If I use ImageFormat.PNG, it takes between
50-350 Milliseconds!!!

Can anyone recommend a faster way to compress a .Net BitMap? I have seen
several libraries here:

http://datacompression.info/SourceCode.shtml

Also, I have seen that Intel has the IPP here (but this looks cool, but like
a steep learning curve):

http://www.intel.com/software/products/ipp/
Before I dive into the depths of a new library, I was wondering if anyone
has a recommendation?


Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

http://www.vb-helper.com/howto_net_save_form_image.html

Ken
-----------------
"gregory_may" <None> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
I am looking for a better way to compress screen shot data.

Currently this line of code:
MyBitMapImage.Save(MyMemoryStream, System.Drawing.Imaging.ImageFormat.Jpeg)

Takes between 70-90 Milliseconds, If I use ImageFormat.PNG, it takes between
50-350 Milliseconds!!!

Can anyone recommend a faster way to compress a .Net BitMap? I have seen
several libraries here:

http://datacompression.info/SourceCode.shtml

Also, I have seen that Intel has the IPP here (but this looks cool, but like
a steep learning curve):

http://www.intel.com/software/products/ipp/
Before I dive into the depths of a new library, I was wondering if anyone
has a recommendation?



Nov 21 '05 #2

P: n/a
Thanks Ken.

This URL is using the same method to save as I am currently using
(bitmap.Save). I don't believe this will improve my performance at all ...
its basically the same code.

If you run across anything else, please post here.

Thanks!
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:OB**************@TK2MSFTNGP09.phx.gbl...
Hi,

http://www.vb-helper.com/howto_net_save_form_image.html

Ken
-----------------
"gregory_may" <None> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
I am looking for a better way to compress screen shot data.

Currently this line of code:
MyBitMapImage.Save(MyMemoryStream,
System.Drawing.Imaging.ImageFormat.Jpeg)

Takes between 70-90 Milliseconds, If I use ImageFormat.PNG, it takes
between
50-350 Milliseconds!!!

Can anyone recommend a faster way to compress a .Net BitMap? I have seen
several libraries here:

http://datacompression.info/SourceCode.shtml

Also, I have seen that Intel has the IPP here (but this looks cool, but
like
a steep learning curve):

http://www.intel.com/software/products/ipp/
Before I dive into the depths of a new library, I was wondering if anyone
has a recommendation?


Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.