create method
Implementation
bool create( int width, int height, bool initWindow, [bool rgbFlag = false] ){
// イメージを開放する
_dispose();
if( (width <= 0) || (height <= 0) ){
return false;
}
// イメージを確保する
_image = List.filled( width * height, 0 );
_offset = width;
_width = width;
_height = height;
_createFlag = true;
_rgbFlag = rgbFlag;
// ウィンドウ情報
if( initWindow ){
setWindow( 0.0, 0.0, 1.0, 1.0 );
} else {
// 現在点を更新する
_wndMoveX = wndPosX( _imgMoveX );
_wndMoveY = wndPosY( _imgMoveY );
}
// イメージをクリアする
clear( 0 );
return true;
}