Click here to Skip to main content
15,914,162 members
Home / Discussions / WPF
   

WPF

 
Questionchange menustrip Pin
jogisarge12-Dec-08 5:17
jogisarge12-Dec-08 5:17 
AnswerRe: change menustrip Pin
Mark Salsbery12-Dec-08 7:05
Mark Salsbery12-Dec-08 7:05 
QuestionInstance Error in xaml Pin
Arijit Manna11-Dec-08 23:15
Arijit Manna11-Dec-08 23:15 
AnswerRe: Instance Error in xaml Pin
Pete O'Hanlon12-Dec-08 1:26
mvePete O'Hanlon12-Dec-08 1:26 
AnswerRe: Instance Error in xaml Pin
Mark Salsbery12-Dec-08 7:08
Mark Salsbery12-Dec-08 7:08 
GeneralRe: Instance Error in xaml Pin
Arijit Manna12-Dec-08 18:00
Arijit Manna12-Dec-08 18:00 
GeneralRe: Instance Error in xaml Pin
Mark Salsbery13-Dec-08 6:07
Mark Salsbery13-Dec-08 6:07 
QuestionVector To Raster in WPF is Blurry... Pin
pym11-Dec-08 4:01
pym11-Dec-08 4:01 
Hello,

I am trying to convert some vector based objects into a raster bitmap.
I manage to do that, but the result is blurry, meaning, edges are blurry instead of jagged.
I assume an anti-aliasing algorithm is applied, but I do not want to be applied...

here is my simplified code in which I draw a circle and make a raster out of it to an Image Control:

DrawingVisual drawingVisual = new DrawingVisual();
DrawingContext drawingContext = drawingVisual.RenderOpen();
drawingContext.DrawEllipse(Brushes.Red, new Pen(Brushes.Red, 1), new Point(50, 50), 50, 50);
drawingContext.Close();

RenderTargetBitmap bmp = new RenderTargetBitmap(180, 180, 96, 96, PixelFormats.Pbgra32);
bmp.Render(drawingVisual);

_image.Source = bmp;


Here is an image to make it clearer.
What I want is the jagged edged circle...
Sample Image[^]

Does anyone have any idea why this happens???
Thanks!
QuestionCan we use a WinApp control in WPF ? Pin
Mohammad Dayyan10-Dec-08 21:17
Mohammad Dayyan10-Dec-08 21:17 
AnswerRe: Can we use a WinApp control in WPF ? [modified] Pin
anandkb11-Dec-08 0:30
anandkb11-Dec-08 0:30 
GeneralRe: Can we use a WinApp control in WPF ? Pin
Mohammad Dayyan11-Dec-08 4:44
Mohammad Dayyan11-Dec-08 4:44 
QuestionCursor Position ? Pin
Mohammad Dayyan10-Dec-08 11:11
Mohammad Dayyan10-Dec-08 11:11 
AnswerRe: Cursor Position ? Pin
Jammer11-Dec-08 3:44
Jammer11-Dec-08 3:44 
GeneralRe: Cursor Position ? Pin
Mohammad Dayyan11-Dec-08 4:42
Mohammad Dayyan11-Dec-08 4:42 
GeneralRe: Cursor Position ? Pin
Mark Salsbery11-Dec-08 11:03
Mark Salsbery11-Dec-08 11:03 
AnswerRe: Cursor Position ? Pin
teejayem11-Dec-08 9:35
teejayem11-Dec-08 9:35 
GeneralRe: Cursor Position ? Pin
Mohammad Dayyan11-Dec-08 23:49
Mohammad Dayyan11-Dec-08 23:49 
QuestionWindow Location in WPF ! Pin
Mohammad Dayyan10-Dec-08 11:00
Mohammad Dayyan10-Dec-08 11:00 
AnswerRe: Window Location in WPF ! Pin
Jammer11-Dec-08 3:43
Jammer11-Dec-08 3:43 
AnswerRe: Window Location in WPF ! Pin
Mark Salsbery11-Dec-08 5:58
Mark Salsbery11-Dec-08 5:58 
QuestionWPF and printing Pin
siten030810-Dec-08 7:50
siten030810-Dec-08 7:50 
Questionregarding silver basic Pin
cpquest10-Dec-08 1:10
cpquest10-Dec-08 1:10 
AnswerRe: regarding silver basic Pin
Kevin McFarlane18-Dec-08 12:16
Kevin McFarlane18-Dec-08 12:16 
GeneralLate binding Pin
Mycroft Holmes9-Dec-08 21:12
professionalMycroft Holmes9-Dec-08 21:12 
GeneralRe: Late binding Pin
Pete O'Hanlon9-Dec-08 22:32
mvePete O'Hanlon9-Dec-08 22:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.