FMX.Types.FindClosestPixelFormat
Delphi
function FindClosestPixelFormat(Format: TPixelFormat; const FormatList: TPixelFormatList): TPixelFormat;
C++
extern DELPHI_PACKAGE TPixelFormat __fastcall FindClosestPixelFormat(TPixelFormat Format, System::Generics::Collections::TList__1<TPixelFormat>* const FormatList);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Types.pas FMX.Types.hpp |
FMX.Types | FMX.Types |
Description
Returns the pixel from a specified list that resembles most to the given pixel format.
Format
specifies the pixel format for which to apply the search.
FormatList
specifies the list of pixel formats in which to look for Format
.
FindClosestPixelFormat looks for the pixel format that is closest to Format
, if Format
is not in the FormatList
.