×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    80

    Question Is it possible to draw a semi-transparent circle on canvas?

    .................................

  2. #2
    Registered User
    Join Date
    Apr 2010
    Posts
    15

    Re: Is it possible to draw a semi-transparent circle on canvas?

    Is it possible? it seems so
    Have I done it? No
    How to do it?
    you need 3 images.
    first one , your main, target image
    second one, an image containing your circle in color
    third one, an image containing your circle alpha map channel, you could draw a a circle by choosing an alpha specifier color, note that 2nd and 3rd image should be in same manner except 3rd one is only alpha map

    blit 2nd image on 1st image using 3rd image as alpha channel, by setting right arguments in blit.
    see python s60 documention, blit part, you will understand.
    From pys60 doc:
    blit(image[,target=(0,0), source=((0,0),image.size), mask=None, scale=0 ])
    Copies the source area from the given image to the target area in this drawable. The source area is copied
    in its entirety if mask is not given or is set to None. If the mask is given, the source area is copied where
    the mask is white. mask can be either None, a 1-bit (black and white) Image or a grayscale Image, and
    must be of the same size as the source image. A grayscale mask acts as an alpha channel, i.e. partial
    transparency.

Similar Threads

  1. Replies: 0
    Last Post: 2009-02-01, 12:29
  2. is it possible to draw a line over videocontrol in a canvas?
    By byronlilu in forum Mobile Java General
    Replies: 13
    Last Post: 2008-11-28, 11:58
  3. Is it possible to display transparent png files?
    By raffaelbechara in forum Symbian Media (Closed)
    Replies: 6
    Last Post: 2008-11-07, 11:47
  4. Draw Transparent png Image on Canvas
    By Stalkin in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2008-09-24, 19:19
  5. Transparent PNG on 3410, is it possible?
    By ianjames in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2002-10-09, 11:51

Posting Permissions

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