| Reply | « Previous Thread | Next Thread » |
|
Hi,
I want to load a 8-bit greyscale image as the mask for alpha-blending bliting. Currently the Image.load() seems only support RGB16 (and the loaded image is RGB16 even if the image file is 8-bit ). Is there a workaround? Thanks. Yu |
|
Quote:
There's ALWAYS a workaround Howabout this: create 8-bit image Image.new(size, mode='L') and blit your mask image on top of that? The result could be an automatically converted 8-bit image?Good luck, --jouni |
|
Quote:
In order to load the 8-bit gray scale indexed image, you can create a 8-bit image object first. img = Image(size, 'L') # and then load the image. img.load("c:\\data\\Images\\mask.png") # works for Python 1.4.5 in N95 8G device. Yu |
|
Quote:
Cheers, --jouni
Last edited by JOM : 2009-01-21 at 07:51.
Reason: Fixed weird bug in text output ...
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Using Icon as Image | korakotc | Python | 6 | 2006-02-13 20:34 |
| It takes time to load image on incoming call | rahulsingh | Symbian Tools & SDKs | 16 | 2005-07-05 09:24 |
| PNG Image won't load | maaberge | Mobile Java General | 1 | 2003-11-16 19:13 |
| Can I load image from the pictures list originally stored in the phone? | vivian_cheng | Mobile Java General | 0 | 2003-04-28 17:41 |
| Loading Image data from 'raw' bytes | LongSteve | Mobile Java General | 2 | 2002-11-20 18:38 |