|
-
August 5th, 2004, 05:21 AM
#1
how to stretch a masked image?
hai all,
I am developing an application in VC++ 6.0, which is then migrated to WinCE using eVC++ 4.0.
In my appln., i have to place a masked bitmap ( masking the original bitmap with a mask bitmap) on a dialog.
Also, i have to stretch the masked bitmap and the dialog to fit to the target device screen.
I don't know how to stretch the masked bitmap.
Please help me.
With thanks and Regards,
T.Arun Chakaravarthy
-
August 5th, 2004, 12:27 PM
#2
That depends on what kind of masked image it is...
Is it a black/white mask: then you can try to stretch the image with some filtering and stretch the mask with the same amount but without any filtering.
If the mask is a grayscale mask, you can try to stretch both the image and the mask with filtering and see what that gives.
In any case, I think it's much better to recreate the bitmap to the correct dimensions instead of scaling it at runtime, certainly if it is for some GUI element.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|