r3imgdwi

r3imgdwi

Class

real/gadget/r3imgdwi.h

Library

r3gad

Description:

ImageDisplayWindow Class

See Also

oops/r3window.h

Super Class

r3Window

R3CLID_WINDOW

JavaScript

r3Imagedisplaywindow

Class Identifier

R3CLID_IMAGEDISPLAYWINDOW - 160

Methods

Attributes

Image, ImageWidth, ImageHeight, ImageBackground, Channel, SizeFromImage, PixelAspect, Scaling,

Image

Attribute

Image

Identifier

R3IMGDISPWA_Image

JavaScript type

Object

C type

R3OBJ*

Description

image to be shown, derived from R3CLID_DATATYPE). Select the channel to be displayed before setting this attibute

Syntax


jsobj.SetImage(value);
value = jsobj.GetImage();


R3OBJ* value = ...;
R3SetAttrs(r3obj, R3IMGDISPWA_Image, value, R3TAG_END);
R3OBJ* value;
R3GetAttrs(r3obj, R3IMGDISPWA_Image, &value, R3TAG_END);

ImageWidth

Attribute

ImageWidth

Identifier

R3IMGDISPWA_ImageWidth

JavaScript type

Integer

C type

R3INT

Description

Syntax


jsobj.SetImageWidth(value);


R3INT value = ...;
R3SetAttrs(r3obj, R3IMGDISPWA_ImageWidth, value, R3TAG_END);

ImageHeight

Attribute

ImageHeight

Identifier

R3IMGDISPWA_ImageHeight

JavaScript type

Integer

C type

R3INT

Description

Syntax


jsobj.SetImageHeight(value);


R3INT value = ...;
R3SetAttrs(r3obj, R3IMGDISPWA_ImageHeight, value, R3TAG_END);

ImageBackground

Attribute

ImageBackground

Identifier

R3IMGDISPWA_ImageBackground

JavaScript type

-

C type

R3BYTECOLOR3

Description

the color in the image the should be replaced with the window background color

Syntax


jsobj.SetImageBackground(value);


R3BYTECOLOR3 value = ...;
R3SetAttrs(r3obj, R3IMGDISPWA_ImageBackground, value, R3TAG_END);

Channel

Attribute

Channel

Identifier

R3IMGDISPWA_Channel

JavaScript type

String

C type

char*

Description

channel name, NULL defaults to color channel

Syntax


jsobj.SetChannel(value);
value = jsobj.GetChannel();


char* value = ...;
R3SetAttrs(r3obj, R3IMGDISPWA_Channel, value, R3TAG_END);
char* value;
R3GetAttrs(r3obj, R3IMGDISPWA_Channel, &value, R3TAG_END);

SizeFromImage

Attribute

SizeFromImage

Identifier

R3IMGDISPWA_SizeFromImage

JavaScript type

Boolean

C type

R3BOOL

Description

if true, the min size of the gadget is defined by the size of the image

Syntax


jsobj.SetSizeFromImage(value);
value = jsobj.GetSizeFromImage();


R3BOOL value = ...;
R3SetAttrs(r3obj, R3IMGDISPWA_SizeFromImage, value, R3TAG_END);
R3BOOL value;
R3GetAttrs(r3obj, R3IMGDISPWA_SizeFromImage, &value, R3TAG_END);

PixelAspect

Attribute

PixelAspect

Identifier

R3IMGDISPWA_PixelAspect

JavaScript type

Number

C type

R3FLOAT

Description

pixel aspect ratio h/w for the displayed image

Syntax


jsobj.SetPixelAspect(value);


R3FLOAT value = ...;
R3SetAttrs(r3obj, R3IMGDISPWA_PixelAspect, value, R3TAG_END);

Scaling

Attribute

Scaling

Identifier

R3IMGDISPWA_Scaling

JavaScript type

Boolean

C type

R3BOOL

Description

support scaling via mouse wheel

Syntax


jsobj.SetScaling(value);
value = jsobj.GetScaling();


R3BOOL value = ...;
R3SetAttrs(r3obj, R3IMGDISPWA_Scaling, value, R3TAG_END);
R3BOOL value;
R3GetAttrs(r3obj, R3IMGDISPWA_Scaling, &value, R3TAG_END);

Tags

Tags

R3IMGDISPWA_HasFrame