![]() |
Showimg img width & height
How do I show an image with showimg with the specified image width and height?
Is there a way to do this? |
You can use stretchx and stretchy to stretch the image.
To work out the size of the stretched image its easy: image width * stretchx = displayed image width. The other way around is fairly simple. Just: stretchx = desired width / actual width |
You can't do it with showimg but you should be able to with drawimagestretched.
|
image.width & image.height
|
Quote:
|
Quote:
Quote:
|
if it's not that that it's imgheight and imgwidth
|
Quote:
|
in gs2 it's getimgwidth("name.png"); and you can't set the width with it.
as i said you can just use PHP Code:
n.b. the only issue with this is that X and Y of the showimg will not be in the top left corner of the image any more. |
Yes you currently need to use stretchx and stretchy to change the size. To correct the position of the image you need to do then:
PHP Code:
PHP Code:
The simpliest way would be to use a GuiBitmapCtrl, I am not sure where you want to display it though. |
Couldn't you just do new TDrawingPanel? :)
|
Details, Details Zokemon. I'll try various things and we'll see what works best.
|
| All times are GMT +2. The time now is 09:37 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.