2 Replies - 8320 Views - Last Post: 26 December 2012 - 08:04 PM Rate Topic: -----

#1 the5thelement  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 59
  • Joined: 30-July 12

Drawing Image From Multiple Images

Posted 26 December 2012 - 05:56 PM

Is there a way to draw an image from multiple images. Such as Posted Image divided into several 16x16 to create an single image.
Is This A Good Question/Topic? 0
  • +

Replies To: Drawing Image From Multiple Images

#2 andrewsw  Icon User is offline

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3517
  • View blog
  • Posts: 12,008
  • Joined: 12-December 12

Re: Drawing Image From Multiple Images

Posted 26 December 2012 - 06:10 PM

This link shows how this can be done with Bitmaps. If they are another image format then I assume there are libraries that can achieve a similar result. Or, if suitable, first convert the images to bitmaps.

This C# example demonstrates how to merge images to one (should be straight-forward to modify for VB).

This post has been edited by andrewsw: 26 December 2012 - 06:13 PM

Was This Post Helpful? 0
  • +
  • -

#3 trevster344  Icon User is offline

  • The Peasant
  • member icon

Reputation: 224
  • View blog
  • Posts: 1,505
  • Joined: 16-March 11

Re: Drawing Image From Multiple Images

Posted 26 December 2012 - 08:04 PM

It really shouldn't be hard. For example if I creating multiple images for sprites on a sprite sheet of 32 different sprites(16x16) then you could use two for loops, and copy from the image the specified rectangle.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1