Go to the documentation of this file.00001 #include "ColorImageRGBa8.h"
00002
00003
00004
00005 using namespace puma2;
00006
00007 ColorImageRGBa8::ColorImageRGBa8(int x, int y) : SingleElementImage<RGBa8>(x,y) ,alt(x,y, (MultiElementImage<byte,4>*) (void*) (SingleElementImage<RGBa8>*) this, 0,0){
00008 setupImageBaseVariables();
00009 };
00010
00011 ColorImageRGBa8::ColorImageRGBa8(int x, int y, ColorImageRGBa8 * m, int xo, int yo) : SingleElementImage<RGBa8>(x,y,m,xo,yo),
00012 alt(x,y,reinterpret_cast<MultiElementImage<byte,4>*>(this),0,0){
00013 setupImageBaseVariables();
00014 };
00015
00016 void ColorImageRGBa8::assign(int i, int j, int n, int v){
00017 c0[i][j].assign(v,n);
00018
00019 };
00020
00021
00022 MultiElementImage<byte,4>& ColorImageRGBa8::asMultiElementImage() {
00023 return alt;
00024 };
00025
00026 int ColorImageRGBa8::numberOfChannels() {
00027 return 4;
00028 };
00029
00030 void ColorImageRGBa8::readFromFile(const char * fileName)
00031 {
00032
00033 }
00034
00035 void ColorImageRGBa8::writeToFile(const char * fileName) const
00036 {
00037
00038 }