FillEllipse DrawEllipse does not work on the negative coordinates.

Jul 7, 2012 at 8:58 AM
Edited Jul 9, 2012 at 1:14 AM

Hello

I zoom in / out operation must be implemented.

So there is a negative coordinates.

FillEllipse DrawEllipse does not work on the negative coordinates.

I need help.

 

// sample source
// Working Code
_writeableBitmap = BitmapFactory.New(640, 480);
image1.Source = _writeableBitmap;

_writeableBitmap.Clear();
_writeableBitmap.FillEllipse(0, 0, 640, 480, Brushes.White.Color);
_writeableBitmap.DrawEllipse(0, 0, 640, 480, Brushes.Black.Color);

// Negative Not Working Code
_writeableBitmap.Clear();
_writeableBitmap.FillEllipse(-696, -787, 2017, 2017, Brushes.White.Color);
_writeableBitmap.DrawEllipse(-696, -787, 2017, 2017, Brushes.Black.Color);