Table of Contents

Class PictureBox

Namespace
OmegaGUI.Model
Assembly
OmegaGUI.dll
public class PictureBox : Control, ICloneable
Inheritance
object
PictureBox
Implements
Inherited Members

Constructors

PictureBox()

public PictureBox()

Properties

Alpha

The level of transparency from 0 (invisible) to 255 (solid)

public byte Alpha { get; set; }

Property Value

byte

TextureFile

The file containing the texture for this picture box

public string TextureFile { get; set; }

Property Value

string

Remarks

Assigning the value this already has is a no-op, so scripts can set this on every frame without reloading the texture each time.

TextureFileValid

public bool TextureFileValid { get; }

Property Value

bool

TextureLocation

The upper left corner of the area in the texture file to use

public Point TextureLocation { get; set; }

Property Value

Point

TextureSize

The distance to the lower right corner of the area in the texture file to use

public Size TextureSize { get; set; }

Property Value

Size

Methods

Clone()

Creates a deep copy of this instance.

public override Control Clone()

Returns

Control

CloneFromTo(PictureBox, PictureBox)

Copies all members declared by PictureBox from one instance to another.

protected static void CloneFromTo(PictureBox from, PictureBox to)

Parameters

from PictureBox
to PictureBox

ClonePictureBox()

Creates a deep copy of this PictureBox instance.

public PictureBox ClonePictureBox()

Returns

PictureBox

The new copy of the PictureBox.