Can anyone give me pointers on how i can determine the width and height of a
JPEG image?
Loading the image is not an option.
I have found a lot of scripts how to extract this info from a JPEG, but they
are all tediously slow.
There must be a faster way to find these "magic numbers" because when i put
the cursor over a jpg-filename in the explorer, the popup text immediately
tells me its 1600x1200
The fastest powerbuilder-script/exampes I have found take bout 5 seconds on
a 2ghz P4
(including the one i have written myself a couple of years ago).
Please
Anyone?
Grtz
harry
I set an invisible picture object on my window and in a button clicked event
I coded the following:
Int li_width, li_height
p_1.PictureName = "C:\Graphics\cloud.jpg"
p_1.OriginalSize = True
li_width = UnitsToPixels(p_1.Width, XUnitsToPixels!)
li_height = UnitsToPixels(p_1.Width, YUnitsToPixels!)
MessageBox(String(li_width), li_height)
HTH
"Harry Schurink" <h_schurinkATtsdDOTnl> wrote in message
news:4030aa12$1@forums-1-dub...
Note: the demo still has a small issue with JPEG images that contain a
thumbnail as part of the header -- in that case, the size returned is that
of the thumbnail, not the full-size image. I haven't had the time to drill
this one down -- maybe you will...
--
<hopethishelps/>
Roy Kiesler [TeamSybase]
SDN CodeXchange -- http://codexchange.sybase.com
"Harry Schurink" <h_schurinkATtsdDOTnl> wrote in message
news:4030aa12$1@forums-1-dub...
HTH
Gerry
On 16 Feb 2004 03:31:30 -0800, "Harry Schurink" <h_schurinkATtsdDOTnl>
wrote:
I know your library, but that has the same performance issues as the sources
that i have,
(downloaded it yesterday before posting this message)
Investigation shows that you used the same original perl-source that i used.
So its slow too...
There must be a way to find those properties quicker...
Anyone?
"Roy Kiesler [TeamSybase]" <SPAM_FREE_...@teamsybase.com> schreef in
bericht news:403121ad$1@forums-2-dub...
--
<hopethishelps/>
Roy Kiesler [TeamSybase]
SDN CodeXchange -- http://codexchange.sybase.com
--
<hopethishelps/>
Roy Kiesler [TeamSybase]
SDN CodeXchange -- http://codexchange.sybase.com
"Harry Schurink" <h_schurinkATtsdDOTnl> wrote in message
news:4031f774$1@forums-2-dub...