|I just had a surprise from WPF in that the drawing functions are anti-aliasing (or something similar) my drawing.
Im not doing naything fancy :
RenderTargetBitmap renderBitmap = new RenderTargetBitmap (
foreach ( DrawingVisual aVisual in visuals )
//blah blah, get dc for each visual in my list, draw geomtry to visual
renderBitmap.Render ( aVisual );
Image img = new Image ( );
img.Source = renderBitmap;
///blah blah encode and save stream to file
all the geometries are simple pens of single color, but the final image has been antialiased, edge colors 'smoothed'.
As this is is an imaging app where every pixel value must be specific, I cant tolerate any kind of 'smart' smoothing.
What am I doing wrong wrong ? How can I guarantee that ONLY those colours that I specify will be displayed ? There must be someway to turn off this ant-aliasing.
thanks for your help, any suggestions or alternative would be appreciated.