Re: getWidth() and getHeight() mixed up?
indeed, looks to be a stupid mixup in the pImage class.
Replace :
Code:
/* Return the width of the picture */
function getWidth()
{ return($this->YSize); }
/* Return the heigth of the picture */
function getHeight()
{ return($this->XSize); }
By :
Code:
/* Return the width of the picture */
function getWidth()
{ return($this->XSize); }
/* Return the heigth of the picture */
function getHeight()
{ return($this->YSize); }