Sign in Join
FPDoc Onlineexperiment

TestStreamIsXPM function

In unit Graphics

Examines values in the specified stream to determine if it contains a .XPM image.

Declaration

pascal
function TestStreamIsXPM(const AStream: TStream): Boolean

Arguments

AStream

TStream instance examined in the routine.

Function result

True when .XPM signature is found in the stream.

Description

Skip comments and searches for the 'static [const] [unsigned] char*' statement in the stream.

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