image dimensions

Find quick help here to get you started with Hollywood
Post Reply
Bohun
Posts: 7
Joined: Sat Jul 16, 2016 8:34 am
Location: Poland

image dimensions

Post by Bohun »

I haven't found a way. How to read the width and height of the image?
plouf
Posts: 709
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: image dimensions

Post by plouf »

image you mean a loaded brush ?

use GetAttribute()

Code: Select all

LoadBrush(1,"c:\\23.png")

DebugPrint(GetAttribute(#BRUSH,1,#ATTRWIDTH))
DebugPrint(GetAttribute(#BRUSH,1,#ATTRHEIGHT))
Christos
Bohun
Posts: 7
Joined: Sat Jul 16, 2016 8:34 am
Location: Poland

Re: image dimensions

Post by Bohun »

I'm thinking about a small program that manipulates photo dimensions and cropping. If using a brush is appropriate, then yes. I have no programming experience and I'm playing around with AI, but it's not quite right. After a long struggle, the AI ​​also managed to get attributes, but I wasn't sure. Thank you.
plouf
Posts: 709
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: image dimensions

Post by plouf »

whats your logic?
how you plan to manipulate image ? you first have to load it correct?
but yes you cant find image size without loading it first

you can however examine image header, but is not that simple...
Christos
Post Reply