37 typedef shared_ptr<class Image4>
Ref;
46 void copyArray(
const Color1unorm8* src,
int w,
int h);
47 void copyArray(
const Color3unorm8* src,
int w,
int h);
48 void copyArray(
const Color4unorm8* src,
int w,
int h);
72 void load(
const std::string& filename);
75 void save(
const std::string& filename);
const class ImageFormat * format() const
Definition: Image4.cpp:212
int32 height() const
Definition: Map2D.h:645
static Ref createEmpty(int width, int height, WrapMode wrap=WrapMode::ERROR)
Definition: Image4.cpp:43
Image4(int w, int h, WrapMode wrap)
Definition: Image4.cpp:24
shared_ptr< class Image4 > Image4Ref
Definition: Image4.h:20
static Ref fromArray(const class Color1unorm8 *ptr, int width, int height, WrapMode wrap=WrapMode::ERROR)
Definition: Image4.cpp:109
shared_ptr< class Image4 > Ref
Definition: Image4.h:37
Definition: WrapMode.h:63
void load(const std::string &filename)
Definition: Image4.cpp:60
float wrap(float t, float lo, float hi)
Definition: g3dmath.h:495
uint32 h
Definition: Map2D.h:194
int32 width() const
Definition: Map2D.h:639
static Ref fromFile(const std::string &filename, WrapMode wrap=WrapMode::ERROR)
Definition: Image4.cpp:53
uint32 w
Definition: Map2D.h:191
static Ref fromImage4unorm8(const shared_ptr< class Image4unorm8 > &im)
Definition: Image4.cpp:29
Image4 Type
Definition: Image4.h:36
void copyArray(const Color1 *src, int w, int h)
Definition: Image4.cpp:193
void save(const std::string &filename)
Definition: Image4.cpp:206
Definition: WrapMode.h:55