Hi

Unfortunately, this method was for Linux only.. not for Win32...

Fortunately I managed to dig out the bug. It turns out that the BMP produced

by Win32::Clipboard::GetBitmap is simply not compatible to TK.

The BMP file created by Win32::Clipboard::GetBitmap  is not even compatible
with MSPhotoEdit. So I tried to create a BMP file with MSPhotoEdit and that
file was acceptable to TK. ..

Now I know what to do next... I'll play around this file and see what is
difference
it has over Win32::Clipboard::GetBitmap format...

Dan

On Mon, Nov 23, 2009 at 4:19 PM, Glenn Linderman <[email protected]> wrote:

> On approximately 11/22/2009 11:48 PM, came the following characters from
> the keyboard of Daniel Burgaud:
>
>  Hi,
>>
>> Does TK have image Crop functionality?
>>
>> The reason why I wanted to use BMP is it's simple format..
>> What I need in my final code is to show in a small "label widget" a small
>> portion of the screen
>> where the mouse was when ButtonRelease-1 was issued. BMP cropping is easy
>> to accomplish
>> with perl.
>>
>
> The reference I gave (and I'm not much of a Tk user, so just found it using
> Google), seems to talk about how Tk can capture even a single widget from
> the screen... but maybe that only applies to things placed there by Tk,
> maybe you are capturing something from another program.  Anyway, good luck
> on achieving your goals.
>
>
>     http://www.perlmonks.org/index.pl?node_id=361299 describes one
>>    way, dunno if it can be ported to Windows or not.
>>
>>
>>
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to