Search Tools Links Login

Bitblt Load Striaght to Mem [Animation]

Posted: 2002-06-01
By: ArchiveBot
Viewed: 62

Filed Under:

Visual Basic 6

Title Uploaded Size
Bitblt_Loa503321212002.zip 9/3/2020 3:45:00 PM 86,777

This code will load a picture in mem on form load. Its show how also to do an animation with bitblt. Loading it in memory not only makes fps faster but the program itself.

Original Author: Josh Nixon

Assumptions

This code will load a picture in mem on form load. Its show how also to do an animation with bitblt. Loading it in memory not only makes fps faster but the program itself.

Returns

Satafaction

API Declarations

Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Private Declare Function CreateCompatibleDC Lib "gdi32" (ByVal hdc As Long) As Long
Private Declare Function SelectObject Lib "gdi32" (ByVal hdc As Long, ByVal hObject As Long) As Long
Private Declare Function DeleteDC Lib "gdi32" (ByVal hdc As Long) As Long
Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long
Private Declare Function CreateCompatibleBitmap Lib "gdi32" (ByVal hdc As Long, ByVal nWidth As Long, ByVal nHeight As Long) As Long
Const SRCAND = &H8800C6
Const SRCPAINT = &HEE0086


Comments on this post

No comments have been added for this post.

You must be logged in to make a comment.