Index Parent

Gfxpic class


The Gfxpic class is used to display datatype pictures.

Of course, you may give a Gfxpic object a Frame, a Background and an InputMode, to make it act like a button.

Gfxpic may be used when other graphic classes failed. If you cannot show your picture via Bitmap and Picture, try to use Gfxpic.

Gfxpic uses guigfx.library so you must have guigfx.library and render.library in LIBS: to use it. guigfx.library and render.library are copyright of Timm S.Müller.

 

Attributes
Name Type Class Note
AlphaPresent N G 1 if the image has a transparent mask, 0 otherwise
DitherMode S I One of:
  • FS
  • EDD
  • None
  • Random
File S IS The name of a file to load
FreeHoriz B I If 1 the image is horiz unlimited and it is horiz scaled when you change the window width
FreeVert B I If 1 the image is vert unlimited and it is vert scaled when you change the window height
ImageHeight N G The height of the image
ImageWidth N G The width of the image
MaxPens N I Max pens to use; min accepted value is 2
Precision S I One of:
  • Exact
  • Image
  • Icon
  • Gui
Scale N ISGN Percent factor for scaling
ScaledWidth N G Actual width of the image
ScaledHeight N G Actual height of the image
Source S IS As File
Transparent B ISGN If the image has a transparent mask, it makes the image transparent
XUnlimited B I If 1 the image is horiz unlimited, but it is not horiz scaled when you change the window width
YUnlimited B I If 1 the image is vert unlimited, but it is not vert scaled when you change the window height

 

Methods
Name Parameters Note
FlipX - Flip the image horiz
FlipY - Flip the image vert