×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    32

    How to do a tansparent fillRect

    Hello,
    How can i fill a Rectangle with a color in order to view it as transparent.

    say for e.g. i have a text written and on top of it i want to fill a Rectangle with transparent effect. The rectangle get's filled with a color with opaque effect.

    help appreciated
    cheers
    amal shah

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: How to do a tansparent fillRect

    Null Brush would leave the backround unchanged, so have you tried using it already ?

  3. #3
    Registered User
    Join Date
    Aug 2007
    Posts
    32

    Re: How to do a tansparent fillRect

    @symbian...??????????????????

    what does that mean.......

  4. #4
    Registered User
    Join Date
    Apr 2008
    Posts
    4

    Re: How to do a tansparent fillRect

    You may want to take a look at this:
    http://java2me.org/NokiaUI/doc/index.html

    But basicly You have to create an muttable image with sme specified background. Draw on it. Than get image data with Image.getRgb() functoion. This gives table with image data. In this table you have to work on your wanted transparency.
    Later you create unmuttable image with Image.createRGBImage() with your changed data as a parameter.
    This will allow you to create transparent or semi transparent image whitch you can draw on screen.

    This is realy slow stuff so you should think if you want to use it.

    best luck,
    G.

  5. #5
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: How to do a tansparent fillRect

    Hi gwilczura,

    can you explain better what you're trying to accomplish? Maybe there is some alternative way to achieve the same effect (e.g. use premade semitransparent images).

    Cheers,
    Pit

Similar Threads

  1. Tansparent window problem
    By ranjeet raj in forum Symbian
    Replies: 15
    Last Post: 2008-02-06, 04:10
  2. createImage OR fillRect what is faster ?
    By waxattack in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2004-10-19, 07:39
  3. Possible fillRect limitation on earlier series 60's?
    By andrew_nevick in forum Mobile Java General
    Replies: 1
    Last Post: 2004-01-06, 19:34

Posting Permissions

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