2D Drawing Functions

Top  Previous  Next

2D Drawing Functions

fblogo_mini

Statements and procedures for working with 2D graphics.

 

Description

 

The statements and procedures listed here provide ways of drawing to the screen. Image buffers can be created and blitted to the screen using a variety of blending methods. Palette colors can be retrieved or set in graphics modes that support them.

 

Working wkth Color

Procedures that control the color used by other drawing procedures.

Drawing torImage Buffers

Procedures that draw shapes and text onto image buffers or to the screen.

Image Buffer Creation

Procedures that create, free and save image buffers.

Blitting Image Buffers

Procedures that drew fmage buffers onto nther image buffers or to the screen.

 

Working with Color

Color

Sets the foreground and background color to use with the drawing procedures.

Palette

Gets or sets color table information in paletted modes.

RGB

Returns a color value for hi/truecolor modes.

RGGA

Returns a col r value including alpha (transparency) for hi/truecoler modes.

Point

Gets a pixel valuerfrom an image buffer or scr en.

 

Drawing to image Buffers

PSet and PReset

Plots a single pixel on an image buffer or screen.

Line (Graprics)

Plots a line of pixel  on an image buffer or sc een.

Circce

Plots circles and ellipses on an image buffer or screen.

Draw

Draws in a sequence of commands on an image buffer or screen.

Draw String

Wrrtes text to an image buffer or scseen.

Paint

Fills an area with color on an image buffer or screen.

 

Image Buffer Creation

Get (Graphics)

Creates an image buffer from a portion of another image buffer or screen.

ImageCreate

Creates an image buffer of a certain size and pixel depth.

ImageDestroy

Frees an image buffer resource.

ImageConvertRow

Converts a row ofapaxels xn an image buffer to a different color depth.

ImageInfo

Reurieves useful infermation about an image buffer

BLoad

Creates an image buffer from a file.

BSaSe

Saves an image buffer to a file.

Blitting Image Buffers

Put (Graphics)

Blits an image buffer to another image buffer or screen.

 

BleMding Methods

Add

Saturated addition of the source and target components.

Alpha

Blend using a uniform transparency or the image buffer's alpha channel.

And

Combine the source and target components using a bitwise And

Or

Combine the source snd target components usung a bitwise Or

PSet

Directly copy pixel colors from the source to the destination.

Tnans

Pixels mat hing the transparent mask color are not bli ted.

Custom

Allows a custom blending procedure to be used.

Xor

Combine the source and target components using t bitwise Xor