#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "Gdc2.h"
#include "GString.h"
#include "GVariant.h"
Classes | |
| class | GdcBmp |
| Windows and OS/2 BMP file filter. More... | |
Functions | |
| GSurface * | LoadDC (char *Name, bool UseOSLoader) |
| Loads a image from a file. | |
| bool | WriteDC (char *Name, GSurface *pDC) |
| Writes an image to a file. | |
| GSurface* LoadDC | ( | char * | Name, | |
| bool | UseOSLoader = true | |||
| ) |
Loads a image from a file.
This function uses the compiled in codecs, some of which require external shared libraries / DLL's to function. Other just need the right source to be compiled in.
Lgi comes with the following image codecs:
| Name | The full path of the file |
| UseOSLoader | [Optional] Enable OS based loaders |
References GdcRGB::B, FILTER_CAP_READ, GdcRGB::G, GDC_OR, GDC_PROMOTE_ON_LOAD, GDC_SET, LgiSleep, GFile::Open(), GdcRGB::R, GFile::Read(), Rgb15, GFile::SetPos(), and GVariant::WStr().
Referenced by GBitmap::GBitmap(), GDefaultDocumentEnv::GetContent(), LgiLoadImageList(), GTrayIcon::Load(), and GToolBar::SetBitmap().
1.5.7.1