×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Jul 2005
    Posts
    95

    Jpeg image getting saved in monochrome . Help !!

    Hi !

    In my application I capture the screen and then I need to be able to save the bitmap in a variety of image formats. I am able to successfully save the bitmap as a gif . However, I am facing problems saving the bitmap as a jpeg, png or a tiff.The following code saves a bitmap as a jpeg image. However, the jpeg image gets saved in monochrome i.e. black and white. This is driving me nuts , and I cant seem to figure out why .


    Code:
     TMdaJfifClipFormat		iJfifFormat;
    
     targetfilename.Append(_L(".jpg"));
     iJfifFormat.iSettings.iQualityFactor = 90;
     iFileSaver->CreateL(targetfilename,&iJfifFormat, NULL, NULL);
    Also, in my application in addition to saving images in bmp and jpeg , I also need to support png and tiff. I am unable to get the required formats and codecs for saving a bitmap in a png or tiff format. So , Id appreciate it if you could show me some sample code to save a bitmap as a png and as a tiff.

    Thanks a lot

  2. #2
    Regular Contributor
    Join Date
    Oct 2004
    Location
    india
    Posts
    306

    Re: Jpeg image getting saved in monochrome . Help !!

    use this infact

    iJpgFormat->iSettings.iQualityFactor = 100;
    iJpgFormat->iSettings.iSampleScheme = TMdaJpgSettings::TColorSampling(TMdaJpgSettings::EColor420);

  3. #3
    Regular Contributor
    Join Date
    Jul 2005
    Posts
    95

    Re: Jpeg image getting saved in monochrome . Help !!

    Thanks buddy, that worked

Similar Threads

  1. URGENT: how to save Image to JPEG Format?
    By rj_cybersilver in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2005-06-03, 12:13
  2. HELP: Mutable Image to Immutable Image?
    By rj_cybersilver in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2005-03-26, 09:58
  3. saving jpeg image on grid list
    By flicker82 in forum Symbian
    Replies: 0
    Last Post: 2005-01-21, 04:22
  4. Saving an image from the camera as JPEG
    By profoundwhispers in forum Symbian
    Replies: 1
    Last Post: 2004-10-18, 09:35
  5. image in JPEG
    By bermei in forum Browsing and Mark-ups
    Replies: 4
    Last Post: 2003-10-28, 08:20

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×