Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Parts of an image for GuiBitmapCtrl (https://forums.graalonline.com/forums/showthread.php?t=134256922)

Megamas 11-13-2009 07:14 PM

Parts of an image for GuiBitmapCtrl
 
Is there a function like setimgpart x,y,width,height; for GuiBitmapCtrl? =/
When I set width = the image only gets smaller. ><

Liberated 11-13-2009 07:40 PM

Quote:

Originally Posted by Megamas (Post 1538188)
Is there a function like setimgpart x,y,width,height; for GuiBitmapCtrl? =/
When I set width = the image only gets smaller. ><

not that i know of, but im pretty new to scripting myself, btw.
Congratiulations on your first post on the forums, in the 6 years that you've been registered.

Crow 11-13-2009 08:03 PM

Try partx, party, partw and parth.

Megamas 11-13-2009 08:26 PM

Ahh thank you! =D worked! But just on GuiShowImgCtrl, wont work with GuiBitmapCtrl.

Crow 11-13-2009 08:56 PM

Quote:

Originally Posted by Megamas (Post 1538200)
Ahh thank you! =D worked! But just on GuiShowImgCtrl, wont work with GuiBitmapCtrl.

Sorry, didn't have any time to try it.

Switch 11-14-2009 09:41 AM

GuiBitmapCtrl.setvalue(int, int) - sets the offset of the image (horizontal and vertical)

Programmer 11-14-2009 07:59 PM

Quote:

Originally Posted by Switch (Post 1538272)
GuiBitmapCtrl.setvalue(int, int) - sets the offset of the image (horizontal and vertical)

This sets how far the whole image is from the GuiBitmapCtrl's origin (0, 0 on the control), and not for parts of images.

Switch 11-14-2009 08:49 PM

Quote:

Originally Posted by Programmer (Post 1538329)
This sets how far the whole image is from the GuiBitmapCtrl's origin (0, 0 on the control), and not for parts of images.

Never worked with GuiBitmapCtrl's, so I just tried a search, sorry :noob:


All times are GMT +2. The time now is 07:35 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.