IPC@CHIP® Graphics Library – API Documentation

Header image

Main page


GcErrorCode gcLoadImageFromFile ( GcImage image,
const char *  path 
)

This function loads an image from a file. Internally gcCreateImage() will be called to allocate video memory, then the data from the given file will be loaded into video memory and the handed GcImage object will be filled with the images properties.

Supported file types are:

  • Beck Graphics Bitmaps (File extension .bgb)
  • Windows® Bitmap (.bmp) - 16, 24 or 32 bit
Parameters:
image Pointer to a GcImage object. The GcImage::structVer field must be initialized prior to handing the object to this function.
path Path of the image file that is to be loaded
Returns:
One of the following error codes is returned:
Since:
1.00
Targets:

GC01

GC04

X

X

Examples:
example02.c, and example03.c.





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Tue Jun 27 14:21:34 2017 by Doxygen 1.6.1