×

Discussion Board

Results 1 to 2 of 2

Thread: Image resize

  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    22

    Image resize

    I want to resize my images placed with design. I am writing the following code in SizeChanged().

    const CFbsBitmap* oldBitmap = (iImage1->Bitmap());
    CFbsBitmap *bitmap = new CFbsBitmap();
    bitmap->Duplicate(oldBitmap->Handle());

    AknIconUtils::SetSize( bitmap, screenSize, EAspectRatioPreserved );
    iImage1->SetPicture(bitmap);
    iImage1->SetSize(screenSize);

    is it possible to resize an image. If yes am i doing it in the right way...

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,168

    Re: Image resize

    you might want to read the SDK docs for the function, it would say: "Initializes the icon to the given size, if the parameter aBitmap is an instance of CAknBitmap, i.e. created with AknIconUtils methods. If it is not CAknBitmap, this method does nothing. Note that this call sets the sizes of both bitmap and mask (if it exists), regardless of which is given as the parameter."

Similar Threads

  1. PNG Image Resize
    By ashwin.nath.m in forum Mobile Java General
    Replies: 2
    Last Post: 2009-07-10, 10:11
  2. Image Resize. What´s wrong?
    By ricardopcunha in forum Mobile Java General
    Replies: 3
    Last Post: 2009-02-27, 16:25
  3. Opening a JPEG Image
    By ummarbhutta in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2007-02-15, 06:34
  4. how to cut some part of Image
    By mshouab in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2006-08-04, 09:05
  5. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31

Posting Permissions

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