Re: Convert JPEG image to 1 BPP Bitmap format

Tech-Archive recommends: Fix windows errors by optimizing your registry




Use IImageEncoder::SetEncoderParameters to set
ENCODER_COLORDEPTH param = 1.


Jaikant wrote:
Hi,
I am using CLSID_ImagingFactory, IImageDecoder, IImangeEncoder, IImageSink ... to convert BMP file to JPEG and again JPEG to BMP file. My origional BMP file is 1 BPP (1 Bit per pixel ) format so it has the lowest size 2.3 KB
After converting the BMP to JPEG it gives JPEG file of 1.98 KB
But when I convert the JPEG file back to BMP file it is giving BMP file of size 50.3 KB, This is not 1 BPP format. How to instruct the Encoder to generate the Output BMP file in 1 BPP format ? Thanks
Jaikant
I tried

.



Relevant Pages

  • Re: bmp to jpeg
    ... Doing JPEG conversion in memory is a surprising pain in the butt, ... JPEG--only from an existing BMP file. ... Then again, I'm certainly no image processing guru, so perhaps someone else ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: VFW jpeg
    ... frame and save to a file. ... bmp file, so I need to convert it to jpeg. ... You can use a third-party JPEG encoding library (e.g. the ... You can use the system MJPEG encoder in DirectShow and ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: bmp to jpeg
    ... >> loading the bmp file first, i just want to copy the pBuffer. ... >Doing JPEG conversion in memory is a surprising pain in the butt, ... You can also do it with from memory with GDI+ by using the CImage class. ...
    (microsoft.public.win32.programmer.directx.video)
  • OE6 and Save As JPEG
    ... that are embedded with in an e-mail message can only be ... saved as a .bmp file. ... The situation is that I am sending out .jpeg images, ... and only gets a .bmp format option. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)