31 typedef shared_ptr<class Image3>
Ref;
40 void copyArray(
const Color1unorm8* src,
int w,
int h);
41 void copyArray(
const Color3unorm8* src,
int w,
int h);
42 void copyArray(
const Color4unorm8* src,
int w,
int h);
67 void load(
const std::string& filename);
70 void save(
const std::string& filename);
static Ref fromImage3unorm8(const shared_ptr< class Image3unorm8 > &im)
Definition: Image3.cpp:29
int32 height() const
Definition: Map2D.h:645
void save(const std::string &filename)
Definition: Image3.cpp:204
void load(const std::string &filename)
Definition: Image3.cpp:60
Definition: WrapMode.h:63
Image3 Type
Definition: Image3.h:30
shared_ptr< class Image3 > Image3Ref
Definition: Image3.h:20
static Ref fromFile(const std::string &filename, WrapMode wrap=WrapMode::ERROR)
Definition: Image3.cpp:53
float wrap(float t, float lo, float hi)
Definition: g3dmath.h:495
uint32 h
Definition: Map2D.h:194
shared_ptr< class Image3 > Ref
Definition: Image3.h:31
int32 width() const
Definition: Map2D.h:639
uint32 w
Definition: Map2D.h:191
Image3(int w, int h, WrapMode wrap)
Definition: Image3.cpp:24
static Ref fromArray(const class Color1unorm8 *ptr, int width, int height, WrapMode wrap=WrapMode::ERROR)
Definition: Image3.cpp:109
static Ref createEmpty(int width, int height, WrapMode wrap=WrapMode::ERROR)
Definition: Image3.cpp:43
void copyArray(const Color1 *src, int w, int h)
Definition: Image3.cpp:192
const class ImageFormat * format() const
Definition: Image3.cpp:211
Definition: WrapMode.h:55