Sign in Join
FPDoc Onlineexperiment

TFPImageBitmap.LazarusResourceTypeValid function

Member of TFPImageBitmappublicIn unit Graphics

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

Declaration

pascal
function LazarusResourceTypeValid(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

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

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

LazarusResourceTypeValid is used in the implementation of the LoadFromLazarusResource method.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.