This has been driving me nuts. I can't find any way to scale images without blurring in Cairo, at least ways without side effects.
A simple x2 scale: g.Scale (2, 2); g.SetSourceImage (source, 0, 0); g.Rectangle (0, 0, 100, 100); g.Fill (); Is using some kind of filtering and we've got no control over the pattern / source's filtering. If we instead do it all manually: g.Scale (2, 2); pattern = new SurfacePattern (source); pattern.Filter = Filter.Nearest; pattern.Extend = Extend.None; g.Pattern = pattern; g.Rectangle (0, 0, 100, 100); g.Fill (); This works, but the source won't show outside of a 100, 100 location. -- View this message in context: http://mono.1490590.n4.nabble.com/Cairo-Scaling-Is-Blurry-tp3040647p3040647.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. _______________________________________________ Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/gtk-sharp-list