Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


[java] Transparent blitting in java - How?


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   -  Reputation: 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

Sponsor:

#2 bobbin   Members   -  Reputation: 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   -  Reputation: 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   -  Reputation: 122

Like
Likes
Like

Posted 18 October 2000 - 03:54 AM

yes God bless Gimp & xv....

#5 Jerry Lynn   Members   -  Reputation: 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.



PARTNERS