Results 1 to 12 of 12

Userform Image Control - Show specific region of Image

Threaded View

  1. #1
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    293

    Userform Image Control - Show specific region of Image

    Hi all,

    I have a 2D platform game I have been working on in VBA. So far everything has been going to plan, and I'm currently animating everything using individual sprites.

    In a bid to reduce the file size and clutter, I would like to reference a single spritesheet image that contains all the sprites I require, and call specific regions of the image to be shown in the image control.

    For example, My spritesheet has 100 sprites, 10 x 10, measuring 640px by 640px, making each sprite 64px by 64px, so the first sprite location should be 0x0x64x64, the second would be at 0,64,64,128, and so on.

    I've seen this achieved with regular VB with great success, but can it be done in with VBA?

    Many thanks!
    Last edited by PrizeGotti; 11-09-2021 at 11:03 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Userform with image control.
    By Trond64 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 04-18-2021, 06:00 AM
  2. Insert and scale image using Image Control from Active X
    By olga6542 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2020, 06:03 PM
  3. Get Image from worksheet to UserForm Image Control
    By sijostephen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-17-2020, 06:54 AM
  4. [SOLVED] VBA to transfer image FROM userform image control TO a worksheet cell
    By Zoediak in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2014, 02:51 PM
  5. [SOLVED] show jpeg picture inside a userform image control box
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 31
    Last Post: 07-29-2013, 03:44 PM
  6. Displaying and Updating Image Dynamically (ActiveX Image Control?)
    By VTHokie11 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2011, 10:57 AM
  7. Show or hide a control (image)
    By tracktor in forum Excel General
    Replies: 2
    Last Post: 09-17-2009, 10:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1