Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Combining many images into a big one  RSS feed

 
Jon Mattson
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd like to load four equal sized images from .png files and combine them to one big image. How do I do that?

I tried by painting all four images to a Graphic but I didn't find a way to convert a Graphic to an Image, is there a way?
 
Joe Ess
Bartender
Posts: 9428
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't convert a Graphics to an Image, you use the Graphics context of an Image to paint onto the Image:

Your code may vary depending on how you are creating the image and other details.
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For more info, take the graphics tutorial .
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!