This week's book giveaway is in the Security forum.
We're giving away four copies of Securing DevOps and have Julien Vehent on-line!
See this thread for details.
Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Stretching images  RSS feed

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

how can i stretch images programatically, i saw some programmers do it in thier midlets.

thanks.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you create an Image object like,

Image myImage = Image.createImage("/images/image.png");

There are certain services for the image object. I believe you can mess around with the size using the methods in the image object. If you use a dev tool like Netbeans or JBuilder, when you create an object like Image, and you type this: "myImage.", it will pop up a window showing you all the methods that are public in that object.

Hope this answers your questions.
 
He's dead Jim. Grab his tricorder. I'll get his wallet and this tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!