added GetWidth/GetHeight .... functions at Bitmap<>
This commit is contained in:
parent
e05494c0ff
commit
82cdaa44c9
@ -27,6 +27,14 @@ namespace hgl
|
|||||||
delete[] data;
|
delete[] data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const uint GetWidth()const{return width;}
|
||||||
|
const uint GetHeight()const{return height;}
|
||||||
|
const uint GetTotalPixels()const{return width*height;}
|
||||||
|
const uint GetLineBytea()const{return width*CHANNELS*sizeof(T);}
|
||||||
|
const uint GetTotalBytes()const{return width*height*CHANNELS*sizeof(T);}
|
||||||
|
|
||||||
|
T *GetData(){return data;}
|
||||||
|
|
||||||
bool Create(uint w,uint h)
|
bool Create(uint w,uint h)
|
||||||
{
|
{
|
||||||
if(!w||!h)return(false);
|
if(!w||!h)return(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user