• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

copy image

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
PI day is 3.14 (march 14th) and is also einstein's birthday. And this is merely a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic