This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
built_in:images [2017/10/15 16:41] 202.8.246.7 [Table] |
built_in:images [2018/04/19 23:23] (current) |
||
---|---|---|---|
Line 47: | Line 47: | ||
| Image.GetVisibility() | | Image.GetVisibility() | ||
| Image.GetWidth() | | Image.GetWidth() | ||
- | | Image.Move( x, y ) | | + | | Image.Move( x, y ) | Move of a canvas |
| Image.Release() | | Image.Release() | ||
| Image.Reset() | | Image.Reset() | ||
- | | Image.Rotate( angle, pivotX, pivotY ) | + | | Image.Rotate( angle, pivotX, pivotY ) |
| [[Image.Save]]( fileName, | | [[Image.Save]]( fileName, | ||
- | | Image.Scale( x, y ) | + | | Image.Scale( x, y ) |
- | | Image.SetAlpha( alpha ) | + | | Image.SetAlpha( alpha ) |
| Image.SetAutoUpdate( onoff ) | Turn On/Off the update on action on image manipulation. By turning off update, call to Image.Update( ) will update the image all commands done on the image. | | Image.SetAutoUpdate( onoff ) | Turn On/Off the update on action on image manipulation. By turning off update, call to Image.Update( ) will update the image all commands done on the image. | ||
- | | Image.SetBackColor( colorCode ) | + | | Image.SetBackColor( colorCode ) |
| Image.SetBackGradient( color1, | | Image.SetBackGradient( color1, | ||
| Image.SetBackGradientRadial( x, | | Image.SetBackGradientRadial( x, | ||
Line 65: | Line 65: | ||
| Image.SetMargins( left, | | Image.SetMargins( left, | ||
| Image.SetMaxRate( ms ) | Set the minimum amount of time (in ms) between OnTouchMove events | | Image.SetMaxRate( ms ) | Set the minimum amount of time (in ms) between OnTouchMove events | ||
- | | Image.SetName( p1 ) | + | | Image.SetName( p1 ) |
| Image.SetOnLoad( callback ) | | Image.SetOnLoad( callback ) | ||
| Image.SetOnLongTouch( callback ) | | | | Image.SetOnLongTouch( callback ) | | | ||
Line 74: | Line 74: | ||
| Image.SetPadding( left, top, right, bottom ) | | | | Image.SetPadding( left, top, right, bottom ) | | | ||
| Image.SetPaintColor( color ) | Set the color on draw action to the image. | | Image.SetPaintColor( color ) | Set the color on draw action to the image. | ||
- | | Image.SetPaintStyle( style ) | | + | | Image.SetPaintStyle( style ) | Paint style(line, |
| Image.SetPosition( left, top, width, height ) | | Image.SetPosition( left, top, width, height ) | ||
| Image.SetScale( x,y ) | Fract values (as usual): 1=original, -1=flip (mirror) | | Image.SetScale( x,y ) | Fract values (as usual): 1=original, -1=flip (mirror) | ||
Line 88: | Line 88: | ||
===== Options ===== | ===== Options ===== | ||
- | ^Option | + | ^ Button |
- | |async| Loads the image from file in the background and allows your code to continue without waiting for it to load| | + | | async | Loads the image from file in the background and allows your code to continue without waiting for it to load | |
- | |FontAwesome| Use this option to write icons as Text on your image\\ (see the sample at the bottom)| | + | | FontAwesome |
- | |Resize| The Resize option internally scales down the original image to the display size, so it uses up less memory than the full size image (useful if you are displaying lots of thumbnail images)| | + | | Resize |
- | |ScaleCenter| you can use the option to keep the image at it's original size and centered within the Image object| | + | | ScaleCenter |
+ | | Button | ||
---- | ---- |