| Reply | « Previous Thread | Next Thread » |
|
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 |
| amalshah73 |
| View Public Profile |
| Find all posts by amalshah73 |
|
Null Brush would leave the backround unchanged, so have you tried using it already ?
|
|
@symbian...??????????????????
what does that mean....... |
| amalshah73 |
| View Public Profile |
| Find all posts by amalshah73 |
|
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. |
|
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 |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Tansparent window problem | ranjeet raj | General Symbian C++ | 15 | 2008-02-06 05:10 |
| createImage OR fillRect what is faster ? | waxattack | Mobile Java Media (Graphics & Sounds) | 5 | 2004-10-19 08:39 |
| Possible fillRect limitation on earlier series 60's? | andrew_nevick | Mobile Java General | 1 | 2004-01-06 20:34 |