×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    10

    Resizing masked bitmaps

    Is it possible somehow to resize a masked bitmap? The idea is to resize both the picture and its mask. The picture is simple so the mask will be good enough after both the picture and the mask are resized.

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    76

    RE: Resizing masked bitmaps

    -Create a new bitmap with the new size.
    -Create a bitmap device and a bitmap context on the new bitmap.
    -Draw the old bitmap using the new bitmap context on the new bitmap, using the stretch variant of DrawBitmap.
    -Delete the old bitmap.

    -Do the same for the mask bitmap.

  3. #3
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: Resizing masked bitmaps

    Quote Originally Posted by huckFIN
    -Create a new bitmap with the new size.
    -Create a bitmap device and a bitmap context on the new bitmap.
    -Draw the old bitmap using the new bitmap context on the new bitmap, using the stretch variant of DrawBitmap.
    -Delete the old bitmap.

    -Do the same for the mask bitmap.
    Can you give me the code snippets if u have that handy somewhere..?

    Cheers

Posting Permissions

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