scale big picture on a label

How to scale a picture (001.jpg) which has its own dimensions to display on a label

dotNetControl dropbtn "System.Windows.Forms.Label" pos:[50,4] width:155 height:121 

This code:

dropbtn.image = (dotNetclass "System.Drawing.image").fromfile "d:\folder\001.jpg"

is displaying a portion of the image inside 155x121px

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
artrender.info's picture

""

""

artrender.info's picture

""

""

artrender.info's picture

thx

It seams .ImageAlign works only with dropbtn.image not with dropbtn.BackgroundImage
But .image does not have ImageLayout property

:(

barigazy's picture
artrender.info's picture

OH YESSSS

This is a GREAT Tool to use! I was working just like a stupid without knowing this!

artrender.info's picture

COOOOOOOOOOOOOOL

THX! Its new for me!
I see .ImageAlign
but how to use it?
and .Left

barigazy's picture

:)

when you find props then you need to go again but with props

showproperties dropbtn.ImageAlign

end you will end up with this

dropbtn.ImageAlign = dropbtn.ImageAlign.Left

bga

barigazy's picture

...

try by yourself this in the listener

dropbtn = dotNetobject "Label"
showproperties dropbtn -- to show all properties
showmethods dropbtn -- to show all methods
showevents dropbtn -- to show all events

I can't remeber if there "align" properties for bgimage but for image is there for sure, you can try to find

bga

artrender.info's picture

position

is it possible to align it to the left?
If I use zoom then it positions it in the center!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.