• Post Reply Bookmark Topic Watch Topic
  • New Topic

Changing gifs - newbie question

 
celine mcgowan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

This is a real newbie question. I have a gui on which there are eight LED's (figure of 8's). I have been able to get the gifs to look like 'figure of 8' led's with border layouts etc. My problem is that i can't find a good explanation of how to change / repaint them. The LED's should display letters/numbers depending on input from the user, but i'm not sure how i get the gif's to change from being 'off' to 'on' in order to display these characters.

Can someone give me a good explanation of an easy way to change which gif i use depending on user input?

Thanks,

Celine
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bitwise manipulation is one way. Here's a demo using graphics. The BasicStroke class has constructor options for different kinds of line–end decoration.
 
celine mcgowan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a million for this Craig! I'll try that now.

Cheers,
Celine
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!