Returns the width of the image.
Declaring type: EventOutSFImage
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract int GetWidth ()
Return Value
The width of the image, in pixels.
Collapse/Expand Example
The following example demonstrates how to get the width of an image:
C#
Vrml.EAI.Node pixelTexture = ...;
Vrml.EAI.Field.EventOutSFImage image_changed = (Vrml.EAI.Field.EventOutSFImage)pixelTexture.GetEventOut("image_changed");
System.Console.WriteLine("width = " + image_changed.GetWidth() + " pixels");