A copy of the clipboard on the DC window.
A copy of the clipboard on the DC window.
Using scissors, I cut out a rectangular fragment of the screen and put it on the clipboard.
How can I put an image from the clipboard on the DC of my window ?
How can I put an image from the clipboard on the DC of my window ?
- nageswaragunupudi
- Posts: 10691
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: A copy of the clipboard on the DC window.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: A copy of the clipboard on the DC window.
Is it possible to estimate the size of the fragment in the clipboard ?
- nageswaragunupudi
- Posts: 10691
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: A copy of the clipboard on the DC window.
Code: Select all | Expand
aImage := FW_ReadImage() // no params
? aImage[ 3 ], aImage[ 4 ] // width and height in pixels
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: A copy of the clipboard on the DC window.
Did I understand correctly that FW_ReadImage (without parameters) accesses the clipboard ?
- nageswaragunupudi
- Posts: 10691
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: A copy of the clipboard on the DC window.
Yes, but if you are using the recent versions. ( FWH2310 and later)Natter wrote:Did I understand correctly that FW_ReadImage (without parameters) accesses the clipboard ?
What is the version you are using?
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: A copy of the clipboard on the DC window.
And if version 2306?nageswaragunupudi wrote:Yes, but if you are using the recent versions. ( FWH2310 and later)Natter wrote:Did I understand correctly that FW_ReadImage (without parameters) accesses the clipboard ?
What is the version you are using?
Thank you!
- nageswaragunupudi
- Posts: 10691
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: A copy of the clipboard on the DC window.
Code: Select all | Expand
hBitmap := FW_GetClipBoardData( 2 )
if hBitmap != nil
// do whatever you want with hBitmap
endif
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India