Re: How to copy a stretched image to clipboard?

Giganews Newsgroups
Subject: Re: How to copy a stretched image to clipboard?
Posted by:  Karl E. Peterson (ka…@exmvps.org)
Date: Fri, 1 May 2009

dos-man 64 wrote:
> I've come up against this problem before in an old screen capture
> program.  Now I've made a little icon viewer and it's reared its ugly
> head again.
>
> The icon is first loaded into a picture control. This allows you to
> view the actual size of the icon.  Then the icon is copied into an
> image control, which allows for a ZOOM feature by setting
> IMAGE1.STRETCH  =  true.
>
> There doesn't seem to be any way to copy the stretched image short of
> alt+prntscr.
>
> Image controls do not have an HDC, so I'm at a loss...  Anyone have
> any ideas on how this can be done?

You could use PaintPicture to do the stretch, and copy the results.

--
.NET: It's About Trust!
http://vfred.mvps.org

Replies

In response to

How to copy a stretched image to clipboard? posted by dos-man 64 on Fri, 1 May 2009