(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
09-27-24 10:18 PM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - Loading Images in VB6
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
Sukasa
Posts: 1304/2068
You're welcome

I'm pretty good with most of VB6 (Well, 'cept microsoft ocntorls tha tdon't function correctly), so I can help you if you need it.
KeiiChi Kun
Posts: 102/190
:O Thanks! This is great, it means I don't have to have a bulky folder full of tiles, thanks again.
Sukasa
Posts: 1293/2068
You're welcome

And, if you are using the resource editor add-in (I'm assuming you're using something like VB6 Professional or whatever and have access to that via the add-ins menu), you can access images in the resource file with the line

"LoadResPicture(PictureID)", or something along those lines, replacing PictureID with the ID of the image you want to laod, which makes my first example become
Select Case Offset
Case 0
Image1.picture = LoadResPicture("image1")
case 1
Image1.picture = LoadResPicture("image2")
.
.
.
End Select.
KeiiChi Kun
Posts: 101/190
Thanks a lot
Sukasa
Posts: 1256/2068
Select Case Offset
Case 0
Image1.picture = loadpicture(image1filename)
case 1
Image1.picture = loadpicture(image2filename)
.
.
.
End Select.

Is this example, Offset ithte name of a variable, and image1 is the example imagebox control that would be modified

And if you need an offset form a file, "Get #1, xxxx, Offset" will work. #1 is the file number of a file opened with "Open filename for Binary As #1" or any other number, and xxxx is the offset in the file.
KeiiChi Kun
Posts: 100/190
I was working on a Map Editor, but I fucked up the entire tile loading system, so I scraped it. Now I wanna know how to load a certain image depending on the value of a certain offset (for obvious reasons) in VB6. Any input would be good, thanks.
Acmlm's Board - I3 Archive - Programming - Loading Images in VB6


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.008 seconds; used 349.55 kB (max 386.66 kB)