I'm trying to create an image generator in a Windows Phone 8.1 application. I want to be able to create an empty bitmap, write some text in it and then add basic content to the bitmap (lines, circles, etc.).
I am using WritableBitmap and I can get the pixels as an integer array. I can modify the array "by hand" but drawing a text for example would be very complicated using this rough method.
WriteableBitmap bmpCreator = new WriteableBitmap(iImgWidthPX, iImgHeightPX);
int[] vPixels = bmpCreator.Pixels;
// I want to use a drawing layer using vPixels
// Draw text
// Draw lines
// Apply filters
// bmpCreator.SaveJpeg(...);
In a Windows Forms application I could have used System.Drawing.Graphics. Unfortunately I don't see this available in Windows Phone 8.1?
Basically I'm searching for a "factory" that takes the pixel array as input and exposes basic image processing functions.
So: Is there anything like System.Drawing.Graphics made for Windows Phone? If not, is there an alternative to my problem?
Thank you for your time!