Class TCastleImageControl

DescriptionHierarchyFieldsMethodsProperties

Unit

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

Overview

Methods

Public destructor Destroy; override;
Public function DrawStyle: TUIControlDrawStyle; override;
Public procedure Draw; override;
Public function PositionInside(const X, Y: Integer): boolean; override;
Public procedure GLContextOpen; override;
Public procedure GLContextClose; override;
Public function Width: Cardinal;
Public function Height: Cardinal;

Properties

Public property Image: TCastleImage read FImage write SetImage;
Published property URL: string read FURL write SetURL;
Published property FileName: string read FURL write SetURL; deprecated;
Published property Blending: boolean read FBlending write FBlending default false;

Description

Methods

Public destructor Destroy; override;
 
Public function DrawStyle: TUIControlDrawStyle; override;
 
Public procedure Draw; override;
 
Public function PositionInside(const X, Y: Integer): boolean; override;
 
Public procedure GLContextOpen; override;
 
Public procedure GLContextClose; override;
 
Public function Width: Cardinal;
 
Public function Height: Cardinal;
 

Properties

Public 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.

Published property URL: string read FURL write SetURL;

URL of the image. Setting this also sets Image. Set this to '' to clear the image.

Published property FileName: string read FURL write SetURL; deprecated;

Warning: this symbol is deprecated.

Deprecated name for URL.

Published 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