Unit 'Graphics' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TCustomBitmap.TyphonResourceTypeValid

Determines if the specified resource type is valid for the image format.

Declaration

Source position: graphics.pp line 1444

public function TCustomBitmap.TyphonResourceTypeValid(

  const ResourceType: string

):Boolean; override;

Arguments

ResourceType

  

The resource type examined in the method.

Function result

Returns True if the resource type is valid for the image format.

Description

TyphonResourceTypeValid is a Boolean function used to determine if the value in ResourceType is a valid resource type for the image format.

TyphonResourceTypeValid is an overridden method in TCustomBitmap, and re-implements the method defined in the ancestor class. The return value is True when ResourceType contains one of the values:

'BMP'
Bitmap resource type.
'BITMAP'
Bitmap resource type.
'XPM'
Pixmap resource type.

Case is not significant for the value in ResourceType; it is converted to uppercase prior to checking its value.

The return value is False if ResourceType contains any other value.

TyphonResourceTypeValid is used in the implementation of the LoadFromTyphonResource method.

See also

TGraphic.LoadFromTyphonResource

  

Load the graphic data from a Typhon Resource (.ctrs) file.

TPicture.LoadFromTyphonResource

  

Gets the named resource from a Typhon Resource (.ctrs) file.



CT Web help

CodeTyphon Studio