Clint,
Indeed. I didn't know about open(...,"image=") saves a lot of work opening an
empty window and reading the image in.
Thanks.
David
________________________________
From: Clinton Jeffery <[email protected]>
To: David Gamey <[email protected]>
Cc: [email protected]
Sent: Tue, August 30, 2011 12:20:02 PM
Subject: Re: [Unicon-group] graphics image file question
ReadImage() works on an already-open window, but open() let's you read an image
as part of
window initialization.
The way I most often check this is by opening a hidden window via
tmp := open(..., "g", "canvas=hidden", "image="||filename)
and then read its WAttrib() width and height.
There might be a utility library procedure that returns these dimensions.
One reason that .jpg and .png file format support is underdocumented is that I
don't believe they are finished -- they seem to work on some platforms with
some
images, and produce incorrect renderings on some platforms with some images. I
look forward to the day when they are fully debugged.
Clint
On Tue, Aug 30, 2011 at 6:28 AM, David Gamey <[email protected]> wrote:
Hi Folks,
>
>I was looking through the docs on ReadImage() and related. I was wondering if
>there is an easy way to determine the exact window size needed for an image?
>
>
>It seems to require having a window of the right size open.
>
>
>BTW. I noticed it seems to handle more file types than originally documented.
>I
>had to look in one of TR's to discover it supports jpg.
>
>David
>
>------------------------------------------------------------------------------
>Special Offer -- Download ArcSight Logger for FREE!
>Finally, a world-class log management solution at an even better
>price-free! And you'll get a free "Love Thy Logs" t-shirt when you
>download Logger. Secure your free ArcSight Logger TODAY!
>http://p.sf.net/sfu/arcsisghtdev2dev
>_______________________________________________
>Unicon-group mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/unicon-group
>
>
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group