×

Discussion Board

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

    creating transparent images at runtime

    Hi,

    I have a small rectangle ( graphic in PNG ) that is loaded then made as a mutable image in code.

    What I need to do is cut out random chunks of it, this isn't the problem.

    The problem is that drawing on it so the underneath becomes transparent ( the rectangle is drawed over the background during the game ).

    If set my drawing colour to be transparent, you don't see the chunks taken out which I get because your drawing nothing on something.
    Is it possible to draw in a certain colour, and then make that colour transparent afterwards ??

    Many Thanks in advance

    Gary

  2. #2
    Registered User
    Join Date
    Apr 2003
    Location
    windsor, co, usa
    Posts
    4
    Gayry™, a kewl thing that you could do is use Photoshop®. From The rectangular tool, crop the element in question and then press alt+f7 to grow. Then it's simply a matter of creating a new layer and removing all color elementals provided that it's in RGB32 differential.

    Simple as the ROLLERboogie®!!

    BEST!!

    =h69=

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    393
    Have a look at the Nokia UI API Guide. It shows how to create a coloured checkerboard image with a transparent hole in the middle.

    http://www.forum.nokia.com/main/1,65..._10_10,00.html

    [N]/Forum Nokia

Posting Permissions

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