[Mono-bugs] [Bug 656843] Printing on an iPad using MonoTouch 3.2.x not working as expected
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Aug 2 17:42:32 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=656843
https://bugzilla.novell.com/show_bug.cgi?id=656843#c6
--- Comment #6 from Jeffrey Stedfast <jeff at xamarin.com> 2011-08-02 21:42:30 UTC ---
Thanks Jon, I didn't know I could do that!
Awesome.
So... I did a bit of playing and things work if you use
vContext.SetRGBStrokeColor (1.0f, 0.0f, 0.0f, 1.0f); but don't work if you use
vContext.SetStrokeColor (new float [] { 1.0f, 0.0f, 0.0f, 1.0f });
Turns out that if you want to use vContext.SetStrokeColor() or .SetFillColor(),
you need to first make sure that the CGContext's ColorSpace is in the
ColorSpace you want to use. It's probably defaulting to CMYK or something (it's
obviously not RGB).
you can do this by doing:
vContext.SetStrokeColorSpace (CGColorSpace.CreateDeviceRGB ());
before you call SetStrokeColor().
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list