This week's book giveaway is in the iOS forum.
We're giving away four copies of Classic Computer Science Problems in Swift and have David Kopec on-line!
See this thread for details.
Win a copy of Classic Computer Science Problems in Swift this week in the iOS 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!