Castle Game Engine: CastleControls: Class TCastleImageControl

# Class TCastleImageControl
Description | Hierarchy | Fields | Methods | Properties
## Unit CastleControls ## Declaration `type TCastleImageControl = class(TUIControlPos)` ## Description Image control inside OpenGL context. Size is automatically adjusted to the image size. You should set TCastleImageControl.Left, TCastleImageControl.Bottom properties, and load your image by setting TCastleImageControl.URL property or straight TCastleImageControl.Image. ## Hierarchy TComponent TInputListener TUIControl TUIControlPos TCastleImageControl ## Overview ### Methods
| `destructor Destroy; override;`
| `function DrawStyle: TUIControlDrawStyle; override;`
| `procedure Draw; override;`
| `function PositionInside(const X, Y: Integer): boolean; override;`
| `procedure GLContextOpen; override;`
| `procedure GLContextClose; override;`
| `function Width: Cardinal;`
| `function Height: Cardinal;`
### Properties
| `property Image: TCastleImage read FImage write SetImage;`
| `property URL: string read FURL write SetURL;`
| `property FileName: string read FURL write SetURL; deprecated;`
| `property Blending: boolean read FBlending write FBlending default false;`
## Description ### Methods
| `destructor Destroy; override;`
| `function DrawStyle: TUIControlDrawStyle; override;`
| `procedure Draw; override;`
| `function PositionInside(const X, Y: Integer): boolean; override;`
| `procedure GLContextOpen; override;`
| `procedure GLContextClose; override;`
| `function Width: Cardinal;`
| `function Height: Cardinal;`
### Properties
| `property Image: TCastleImage read FImage write SetImage;`
Image displayed, or `Nil` if none. This image is owned by this component. If you set this property to your custom TCastleImage instance you should leave memory management of this instance to this component. If necessary, you can always create a copy by TCastleImage.MakeCopy if you want to give here only a copy.
| `property URL: string read FURL write SetURL;`
`URL` of the image. Setting this also sets Image. Set this to '' to clear the image.
| `property FileName: string read FURL write SetURL; deprecated;`
Warning: this symbol is deprecated. Deprecated name for URL.
| `property Blending: boolean read FBlending write FBlending default false;`
Set to `True` to draw image with blending. This is suitable for images that (may) have nice alpha channel.
Generated by PasDoc 0.13.0 on 2013-08-17 21:27:12