/* attempt to deal with prototype, bootstrap, jquery conflicts */ /* for dropdown menus */

Jump to content

Image of the Day

Today's #ScreenshotSaturday features Face Your Fears from Turtle Roc ... #virtualrealityshop #mobilevr #vrshop https://t.co/3qhSNAVNOZ
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

[java] Transparent blitting in java - How?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
4 replies to this topic

#1 DeVore   Members   

122
Like
Likes
Like

Posted 17 October 2000 - 10:10 PM

Hi, How do you blit images in java using a transparent colour. I want to write a game where there isn''t a black box around my game objects like the player etc... Cheers, DeVore

#2 bobbin   Members   

122
Like
Likes
Like

Posted 18 October 2000 - 12:15 AM

transparant gif colours work for me else you''d need to get @ the image source (i''d use the PixelGrabber class), parse it to int[][] (int[] is better, but the maths harder), and use logic to mask out the colour.

#3 DeVore   Members   

122
Like
Likes
Like

Posted 18 October 2000 - 02:51 AM

It''s that simple - I did it with the GIMP!

Cheers,
DeVore

#4 bobbin   Members   

122
Like
Likes
Like

Posted 18 October 2000 - 03:54 AM

yes God bless Gimp & xv....

#5 Jerry Lynn   Members   

122
Like
Likes
Like

Posted 18 October 2000 - 05:15 AM

There are examples of both transparent blitting and blitting using alpha blends (translucent rather than transparent) on the FAQ (for situations where transparent GIF''s are not an option).

Just search for ''transparent''.

(That is of course assuming you can get to the FAQ, which depends on the mood of my ISP).

http://games.cpbinc.com/faq




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.