×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Nov 2004
    Location
    Mumbai - India
    Posts
    155

    BitBltMasked() function provide alpha transparency

    "Series 60 SDK 2.1 for Symbian OS Supporting Microsoft Visual C++ .NET" help says

    BitBltMasked() function provide alpha transparency.

    I defined

    source C8 Air_mask90.bmp in mmp file and
    gc.BitBltMasked (TPoint(--), iBitmapArray---, ---, ETrue);

    Air_mask90.bmp is (8 bit)256 colour BMP.

    It's not working.

    What else I need to do ?



    Saurabh Gupta
    Last edited by saurbh_g; 2004-12-30 at 12:18.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,169
    the function BitBltMasked, takes two images as an argument. The first is the image it self, and the seconf is monocrome mask image. The mask is then used in drawing the select the pixels that are drawn from the real image and other pixels are showing the background, thus the areas appers as transparent.

    The last argument selects, which (either white or black) pixels of the mask will appear as transparent section.

    yucca

  3. #3
    Regular Contributor
    Join Date
    Nov 2004
    Location
    Mumbai - India
    Posts
    155
    My question is about alpha transparency ( semi/varying transparency ) not full transparecy(either draw pixel or not).
    Help says
    "....This function uses either a black and white (binary) mask bitmap, or if aMaskBitmap's display mode is EGray256, alpha blending is used.... "
    i.e.
    binary masking provide full transparency. Whereas if aMaskBitmap's display mode is EGray256 alpha blending.


    I achieved full transparency through masking.
    How I can get semi transparency using EGray256 with masked bitmap ? any example.....

    Thank you
    Saurabh Gupta
    Last edited by saurbh_g; 2005-01-04 at 14:38.

  4. #4
    Registered User
    Join Date
    Mar 2006
    Posts
    24

    Re: BitBltMasked() function provide alpha transparency

    here u r saying tht in BitBltMasked ,The first is the image it self, and the seconf is monocrome mask image.

    how can i mask the image?
    pls reply?

Posting Permissions

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