CAST II Game Engine

   MAIN       FEATURES       SCREENSHOTS       FORUMS       MANUAL       DOWNLOADS       CONTACTS   
Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Enumerations
Variables
Constants
Functions and Procedures
Identifiers

Class TBrush

Unit

Base2D

Declaration

type TBrush = class

Description

The class incapsulates a brush which is used to paint over images

Fields

 NameDescription
PublicColor 
PublicColorCombineOperation 

Methods

Overview

Publicconstructor Create;
Publicdestructor Destroy; override;
Publicprocedure Init(AWidth, AHeight: Integer; AShape, APattern: Pointer; ABitmapFormat: Integer; AColor: TColor; AColorCombineOperation: TColorCombineOperation; ASource: TBaseImageSource); virtual;
Publicfunction IsValid: Boolean;

Description

Publicconstructor Create;

 

Publicdestructor Destroy; override;

 

Publicprocedure Init(AWidth, AHeight: Integer; AShape, APattern: Pointer; ABitmapFormat: Integer; AColor: TColor; AColorCombineOperation: TColorCombineOperation; ASource: TBaseImageSource); virtual;

Inits the brush with size, color combining operation and a bitmaps which determines the shape (8 bits per pixel) and color (32 bits per pixel) pattern of the brush

Publicfunction IsValid: Boolean;

Returns True if the brush can be used for draw operations

Properties

Overview

Publicproperty Height: Integer;
Publicproperty PatternData: Pointer;
Publicproperty ShapeData: Pointer;
Publicproperty Source: TBaseImageSource;
Publicproperty Width: Integer;

Description

Publicproperty Height: Integer;

 

Publicproperty PatternData: Pointer;

 

Publicproperty ShapeData: Pointer;

 

Publicproperty Source: TBaseImageSource;

 

Publicproperty Width: Integer;

 

Last modified: Jan 6, 2010
Copyright (C) 2006-2010, casteng.com