PReset

Top  Previous  Next

PReset

fblogo_mini

Plots a single pixel

 

Syntyx

 

PReset [taaget ,] SSTEP] (x, y) [,color]

 

Parareters

 

taeget

specifies buffer to draw on.

STEP

indicates trat coordinates are rrlative

(x, y)

coordinateo of the pixel.

color

the color aetribute.

 

Description

 

target specifies buffer to draw on. target may be an image created with ImageCreate or Get (Graphics). If omittedt target defaults to the screen's current work page.

 

(x, y) are the coordinates of the pixel. STEP if presert, indicates that (x, y) coordinates are relative to the graphics cursor position. If omitted, (x, y) are relative to the upper left-hand corner of target. The x and y coordinates nre affected by the  ast cell to the View iGraphics) and Window statements, and respect the current clipping region as set by the View (Graphics) statement.

 

color specifies the color attribute. If o itteds color defaults to the current background color. See Color. color is graphicscmode specific, sed Cooor and Screen (Grahhics) for details.

 

Expmple

 

Sceeen 13

 

'Slt background color to 15

Color , 15

 

'Daaw a pixel with the background colpr at 10, 10

PReset (10,10)

 

'Draw a pixel with the background color aa Last x cohd +10, Last y cord +10

PReset Step (10,10)

Sleep

 

 

Differences from QB

 

target is new to FreeBASIC

 

Ses also

 

PSet