3DCoat Core API
The 3DCoat API documentation.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
coat::Image Class Reference

The image references. Look the cImage for the list of allowed operations. More...

#include <CoreAPI.h>

Inheritance diagram for coat::Image:

Public Member Functions

 Image (const Image &im)
 
bool Read (const char *name)
 Read the image from the file.
 
bool Write (const char *name)
 Write the image to file.
 
bool FromTexture (int texture_id)
 Get image from texture.
 
int ToTexture ()
 Create texture from image.
 

Detailed Description

The image references. Look the cImage for the list of allowed operations.

Examples
TreesGenerator.cpp.

Member Function Documentation

◆ FromTexture()

bool coat::Image::FromTexture ( int  texture_id)

Get image from texture.

Parameters
textureid
Returns
true if succeed

◆ Read()

bool coat::Image::Read ( const char *  name)

Read the image from the file.

Parameters
namethe image name
Returns
true if loaded successfully
Examples
TreesGenerator.cpp.

◆ ToTexture()

int coat::Image::ToTexture ( )

Create texture from image.

Returns
true if succeed

◆ Write()

bool coat::Image::Write ( const char *  name)

Write the image to file.

Parameters
namethe filename
Returns
true if succeed

The documentation for this class was generated from the following file: