PictCreate Function

Microchip Graphics Library

Microchip Graphics Library
PictCreate Function
C
PICTURE * PictCreate(
    WORD ID, 
    SHORT left, 
    SHORT top, 
    SHORT right, 
    SHORT bottom, 
    WORD state, 
    char scale, 
    void * pBitmap, 
    GOL_SCHEME * pScheme
);
Overview

This function creates a PICTURE object with the parameters given. It automatically attaches the new object into a global linked list of objects and returns the address of the object.

Input Parameters
Input Parameters 
Description 
WORD ID 
Unique user defined ID for the object instance. 
SHORT left 
Left most position of the Object. 
SHORT top 
Top most position of the Object. 
SHORT right 
Right most position of the Object. 
SHORT bottom 
Bottom most position of the object. 
WORD state 
Sets the initial state of the object. 
char scale 
Sets the scale factor used to render the bitmap. 
void * pBitmap 
Pointer to the bitmap that will be used. 
GOL_SCHEME * pScheme 
Pointer to the style scheme 
radius 
Radius of the rounded edge. 
Returns

Returns the pointer to the object created

Preconditions

none

Side Effects

none

Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved