Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / January 2006

Tip: Looking for answers? Try searching our database.

"Unveiling" an image

Thread view: 
Pestry - 02 Jan 2006 23:13 GMT
Hi,
i want to make a game.There is an image and the user must answer some
questions. Every time he answers correctly, a part of the image is
unveiled. If he answers all the questions correctly, he will be able to
see the whole image.How is it possible to uveil some parts of an image?

thanks in advance
Andrew Thompson - 04 Jan 2006 13:25 GMT
> Hi,
> i want to make a game.

Please refrain from multi-posting.

Signature

Andrew Thompson
physci, javasaver, 1point1c, lensescapes - athompson.info/andrew

Roedy Green - 04 Jan 2006 14:43 GMT
On Tue, 03 Jan 2006 01:13:59 +0200, Pestry
<pestryNOSPAM@PLEASEdotteam.gr> wrote, quoted or indirectly quoted
someone who said :

>.How is it possible to uveil some parts of an image?

Java's model is paint/paintComponent has to be able to draw from
scratch a partly unveiled message.  So you need some sort of data
structure to keep track which parts of the images a veiled and
unveiled.

So you can draw the unveiled image the paint over the veiled parts (or
vice versa.)

To draw a message, you could use drawString.  To cover over you could
use drawRect

See http://mindprod.com/jgloss/canvas.html
for sample code.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.