record TColorRect
Unit
PXL.Types
Declaration
type TColorRect = record
Description
A combination of four colors, primarily used for displaying colored quads, where each color corresponds to top/left,top/right, bottom/right and bottom/left accordingly (clockwise). The format for specifying colors is defined as TPixelFormat.A8R8G8B8.
Overview
Fields
Methods
Description
Fields
TopLeft: TIntColor; |
|
Color corresponding to top/left corner.
|
TopRight: TIntColor; |
|
Color corresponding to top/right corner.
|
BottomRight: TIntColor; |
|
Color corresponding to bottom/right corner.
|
BottomLeft: TIntColor; |
|
Color corresponding to bottom/left corner.
|
Values: array[0..3] of TIntColor |
|
Four colors represented as an array.
|
Methods
function HasAlpha: Boolean; |
|
Returns True if at least one of the colors has non-zero alpha channel.
|
function HasGradient: Boolean; |
|
Returns True if at least one of four colors is different from others in red, green, blue or alpha components.
|
Copyright © 2000 - 2017 Yuriy Kotsarenko. Help files generated by PasDoc.
|