|
-
Feb 18th, 2024, 08:00 AM
#11
Thread Starter
PowerPoster
Re: how convert VB6 to VB2010 code?
 Originally Posted by PlausiblyDamp
If you are trying to create a bitmap and then draw on it you can get a graphics object with something like
Code:
Dim bmp As New Bitmap(100, 100, PixelFormat.Format32bppRgb)
Dim g = Graphics.FromImage(bmp)
and avoid all the interop stuff.
What is the end result of what you want your code to do? IS it just create and dra2w on a bitmap, or something more?
that i know.. but the DIB's are much more faster than Bitmap.SetPixel().. right?
(that's why these big conversion)
even with lockbits() and unlockBits() right?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|