(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
05-29-24 04:50 AM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - Virtual HDC's in VB
  
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
Guy Perfect
Posts: 223/451
In which case, you're gonna want to look up GDI. A subset of GDI that uses some advanced memory management called DIB Sections that are the fastest way to do things. Both will create a DC in memory so it will not be on-screen when you manipulate it.

Visual Basic handles memory automatically, so be careful if you decide to go for DIB Sections. If you fail to deallocate memory, all of the people who use your program will hate you. Also, "hDC" is VB's specific keyword that refers to a handle to a DC. "DC" is the proper term to use for a GDI device context.

Information on the GDI can be found here, which is the section of the MSDN Library devoted to it. It's documented in C++, but you can easily convert it to Visual Basic for your various needs.

Also check out the API Text Viewer program which should be in your Start Menu with Visual Basic (it's one of the Tools). That program can get you access to all GDI functions in VB format. But still use the MSDN Library for documentation on how to use them.
interdpth
Posts: 57/362
I've been looking for docs on Virtual HDC's i've seen some code but they were using Pixels not hdc's, so yeah. I got the Tiles I need but I want to put them on the Virtual HDC so the user doesn't see them while the program loads the the TSA stuff.
Arthus
Posts: 49/142
SOunds like your creating an editor, I know how to write to a certain part of an image, but not get one from a file. Did you try looking for examples? A few ROM hackers here have some good ones.
interdpth
Posts: 56/362
Alrighty I can't find any documentation on this at all and i'm using VB6. Any one care to explain
Acmlm's Board - I3 Archive - Programming - Virtual HDC's in VB


ABII

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

Page rendered in 0.010 seconds; used 345.57 kB (max 379.73 kB)