|
-
Nov 29th, 2000, 08:15 AM
#1
Thread Starter
New Member
Is there a way to get the Hdc directory from LoadResPicture? Can i cast it, or use it directly as a Hdc? or is there a way to get a Hdc from a image out of a resource file?
If not what it the best way to do it without the loading process being seen?
-
Nov 29th, 2000, 10:56 AM
#2
PowerPoster
If you want to use LoadPicture check out my tutorial (direct link). I dont know about LoadResPicture, but if it loads a iPictureDisp you can use it instead.
-
Nov 29th, 2000, 11:23 AM
#3
Thread Starter
New Member
Thanks, but found a better way:
Code:
Dim X as New StdPicture
set X = LoadPicture("C:\Windows\circles.bmp")
BitBlt X.Hdc, 0, 0, 32, 32, Tile, ActFrame * 32, 0, vbSrcCopy
You can also create an array of StdPicture to store graphics in Memory until you need them.
-
Nov 29th, 2000, 11:48 AM
#4
Addicted Member
sorry, change that last line to:
Code:
X.Render(Destination:=Picture1.hdc ,xDest:= 0, yDest:= 0, Destwidth:=32, Destheight:=32, xSource:=0, ySource:=0, SourceWidth:=32, SourceHeight:=32, NULL)
It doesn't allow raster operations thou, I might end up uing some of your code 
Thanks
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
|