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

TFPImageBitmap.TyphonResourceTypeValid

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

Declaration

Source position: graphics.pp line 1478

public function TFPImageBitmap.TyphonResourceTypeValid(

  const ResourceType: string

):Boolean; override;

Arguments

ResourceType

  

Resource type examined in the method.

Function result

True when the resource type name is one file extensions 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, and re-implements the method defined in the ancestor class. The return value is True when ResourceType contains is one the file extensions returned from IsFileExtensionSupported. The return value is False if ResourceType contains any other value.

TyphonResourceTypeValid is used in the implementation of the LoadFromTyphonResource method.

See also

TFPImageBitmap.IsFileExtensionSupported

  

Indicates whether the given file extension is supported for the image type.

TCustomBitmap.TyphonResourceTypeValid

  

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

TGraphic.TyphonResourceTypeValid

  

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

TGraphic.LoadFromTyphonResource

  

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



CT Web help

CodeTyphon Studio