Thanks for the example but in this case u are reading the filesize from the disk. In my project i have captured the image using bitblt and do not want to save it since saving the file i.e., disk I/O is slow. I will be capturing the image in a timer event so lots of images in maybe 5-10 to 15 seconds of time.
waiting for a reply.
thanks a mil
regards,
msa.
Main Topics
Browse All Topics





by: anthonycPosted on 1998-05-09 at 09:22:28ID: 1444729
Option Explicit
REST.BMP") ap)
.bmp")
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (dest As Any, source As Any, ByVal numBytes As Long)
Dim bytPic() As Byte
Private Sub Form_Load()
Dim lSize As Long
Dim picCur As Variant
Clipboard.Clear ' Clear Clipboard.
Clipboard.SetData LoadPicture("c:\windows\FO
picCur = Clipboard.GetData(vbCFBitm
lSize = FileLen("c:\windows\forest
ReDim Preserve bytPic(0 To lSize - 1) As Byte
Call CopyMemory(ByVal VarPtr(bytPic(0)), ByVal VarPtr(picCur), lSize)
End Sub