Class TPixelFormatList

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TPixelFormatList = class(TObject)

Description

List of one or more pixel format elements.

Hierarchy

  • TObject
  • TPixelFormatList

Overview

Methods

Public function Include(const Format: TPixelFormat): Integer;
Public function IndexOf(const Format: TPixelFormat): Integer;
Public function Insert(const Format: TPixelFormat): Integer;
Public procedure Clear;
Public procedure InsertAll;
Public procedure Remove(const Index: Integer);
Public procedure SortBestMatch(const Format: TPixelFormat);

Properties

Public property Count: Integer read GetCount write SetCount;
Public property Items[constIndex:Integer]: TPixelFormat read GetItem write SetItem;

Description

Methods

Public function Include(const Format: TPixelFormat): Integer;

Includes specified pixel format entry to the list and returns its index. This involves searching for the entry first to determine if it's not in the list. For a faster alternative, use just Insert.

Public function IndexOf(const Format: TPixelFormat): Integer;

Returns index of the specified pixel format in the list. If no such entry is found, -1 is returned.

Public function Insert(const Format: TPixelFormat): Integer;

Inserts specified pixel format entry to the list and returns its index.

Public procedure Clear;

Removes all entries from the list.

Public procedure InsertAll;

Inserts all known pixel formats to the list.

Public procedure Remove(const Index: Integer);

Remove pixel format specified by the given index from the list. If the specified index is invalid, this function does nothing.

Public procedure SortBestMatch(const Format: TPixelFormat);

Sorts existing pixel format entries in the list according to their similarity to the given pixel format.

Properties

Public property Count: Integer read GetCount write SetCount;
 
Public property Items[constIndex:Integer]: TPixelFormat read GetItem write SetItem;
 

Copyright © 2000 - 2017 Yuriy Kotsarenko. Help files generated by PasDoc.