Copying sized bitmaps again 
Author Message
 Copying sized bitmaps again

        I thought I'd try again as the previous queries didn't last long on the
I want to copy a bitmap to clipboard,size it and save it.

handle1 = pics1(1).Picture.handle
Debug.Print (handle1)
handle2 = copyimage(handle1, un1, 20000, 20000, un2)
Debug.Print (handle2)

The function is defined:
Private Declare Function copyimage& Lib "User32" Alias "CopyImage" (ByVal
handle As Long, ByVal _
un1 As Long, ByVal n1 As Long, ByVal n2 As Long, ByVal un2 As Long)

The copyimage function is from Appleman's Win32 API for VB5
I'm using pics(1) as a 256color bitmap.
Handle1 is a value greater than 0 bur handle2 is zero indicating the copy
did not work.
Am i using the handle correctly?
Can anybody get this copyimage function to work?

Tue, 15 Feb 2000 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. pixels and bitmaps (again!)

2. Bitmaps and Executable Size

3. Sizing Bitmaps

4. Sizing Bitmaps

5. re-sizing bitmaps

6. Problem sizing & saving bitmaps

7. Problem sizing and saving bitmaps

8. Font Sizes - MS Cheating again

9. help copying bitmaps

10. Query: copying picture boxes to metafiles (not bitmaps)

11. Bitmaps - Not losing palette on copy

12. Back AGAIN Copying data in a Field Question.


Powered by phpBB® Forum Software