Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

copy image

 
alexandros mouzakidis
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody
Is there anyway on midp 1,0 profile to copy images on another image without copy a spesific color;
I need somekind of transparensy with midp 1.0
 
pradeep u nair
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
what actually do you want to do? do you want to impose an image on another?
Pradeep
 
alexandros mouzakidis
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to copy an image to another but i want to copy every pixel except from these with a specific color value for example the value 0x00ff00
 
Ramender Mall
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by alexandros mouzakidis:
I want to copy an image to another but i want to copy every pixel except from these with a specific color value for example the value 0x00ff00


and what do you want to achieve by that?
WHY do you want to go through all this pain?

See, you can do copy stuff by mutable images only, whose all pixels are initialized to some OPAQUE color. So this way you CANNOT preserve or CREATE transparency.
So, the only method (that I know) to maintain transparency of an image in MIDP 1, is using setClip(). But this is effective only if you paint the image as it is on the screen and not on an intermediate mutable image.

Dont think all this was very helpful, so kindly answer the first 2 questions and people here may provide some work around.


- Ramy..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic