Groups | Blog | Home
all groups > visual c > december 2003 >

visual c : How to compress BMP image programatically..


codymanix
12/31/2003 12:26:05 PM
In my knowledge, the Image class can convert images types to jpeg.

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk

Jigar Mehta
12/31/2003 2:57:41 PM
Hye Friends!!,
Happy New Year!!

I am Jigar Mehta from India. Currently I am working on a project in
which I need to compress some images on the harddisk... I want to make an
engine that reads whole BMP image and then compress it.. The target location
can be of any type.. BMP, TIFF, JPG or any.. Some data loss will be
negligible because all the images are having very high resolution with
32-bit colors (taken from digi-cam).

So, is there any library available in VC.NET for compressing the images
or saving it with some different settings?? Or can we use any other free
library for the task?

If you know any way by which we can compress the images (BMP types) then
please suggest me the way.. I have to do it in VC.NET only.. (as it is a
multithreaded program-fully automated)

--
Jigar Mehta
jbmehtain@yahoo.co.in

Carl Daniel [VC++ MVP]
1/1/2004 6:30:39 AM
[quoted text, click to view]

There are many image processing libraries available, some free, some not.
For the best performance (as far as any I've used), the clear choice is
Pegasus (http://www.pegasusimaging.com/documentimaging.htm). It's also the
most expensive and has a horribly (and needlessly) difficult 'C' API. (They
also support COM and .NET APIs that are much more sensible).

Intel provides graphics libraries as a part of the Intel Performance
Primitives
(http://www.intel.com/software/products/perflib/index.htm?iid=ipp_home+softw
are_libraries). These libraries were free at one time, but that's no longer
the case. These libraries are reasonably performant for most operations
(although for JPEG, for example, Pegasus will be 2-4 times faster than Intel
IPP).

There's a large opensource image processing library called ImageMagik that's
very popular on *nix. It include a broad selection of moderately performant
image processing functions.

If you're only interested in image compression/decompression, there are
individual open-source libraries available for most popular formats. Try
searching with Google for 'libJPEG', 'libPNG', 'libTIFF'.

-cd



Jigar Mehta
1/1/2004 12:36:17 PM
Which image class, can I have more details...

[quoted text, click to view]
In my knowledge, the Image class can convert images types to jpeg.

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk



anonymous NO[at]SPAM discussions.microsoft.com
1/4/2004 3:17:19 AM

[quoted text, click to view]
automated)

Hi Jiger Mehta,

I am Gangadhar Chiplunkar ( Indian, but now in US ). I
think you can use GDI+ Image object, load the bitmap from
disk file and while saving choose JPEG or other format
which is nothing but compressed image. Hope this works
for you.

Cheers, Chiplunkar G.K. chips@yahoo.com

Carl Daniel [VC++ MVP]
1/4/2004 7:26:30 AM
[quoted text, click to view]

Yes, you can do some of this using GDI+, but AFIAK, the performace is bad
and you're not able to control the compression process very well. Still,
might be an option depending on the application.

-cd

AddThis Social Bookmark Button