Click here to Skip to main content
15,906,645 members
Home / Discussions / C#
   

C#

 
QuestionAuto refresh and timeout Pin
CezW6-Aug-08 9:39
CezW6-Aug-08 9:39 
AnswerRe: Auto refresh and timeout Pin
leppie6-Aug-08 10:07
leppie6-Aug-08 10:07 
AnswerRe: Auto refresh and timeout Pin
Guffa6-Aug-08 12:26
Guffa6-Aug-08 12:26 
QuestionMessage Removed Pin
6-Aug-08 9:32
tkrn6-Aug-08 9:32 
GeneralRe: SQL Datatype WinForm Textbox Validation? Pin
nelsonpaixao6-Aug-08 14:05
nelsonpaixao6-Aug-08 14:05 
GeneralRe: SQL Datatype WinForm Textbox Validation? Pin
tkrn7-Aug-08 2:09
tkrn7-Aug-08 2:09 
QuestionMulticast Delegates Event Driven Architecture is there a way? Pin
danielgmx6-Aug-08 6:55
danielgmx6-Aug-08 6:55 
QuestionRe: Multicast Delegates Event Driven Architecture is there a way? Pin
led mike6-Aug-08 7:21
led mike6-Aug-08 7:21 
AnswerRe: Multicast Delegates Event Driven Architecture is there a way? Pin
danielgmx6-Aug-08 8:23
danielgmx6-Aug-08 8:23 
QuestionRe: Multicast Delegates Event Driven Architecture is there a way? Pin
led mike6-Aug-08 8:53
led mike6-Aug-08 8:53 
AnswerRe: Multicast Delegates Event Driven Architecture is there a way? Pin
danielgmx6-Aug-08 9:05
danielgmx6-Aug-08 9:05 
GeneralRe: Multicast Delegates Event Driven Architecture is there a way? Pin
led mike7-Aug-08 5:31
led mike7-Aug-08 5:31 
AnswerRe: Multicast Delegates Event Driven Architecture is there a way? Pin
Joe Woodbury6-Aug-08 10:36
professionalJoe Woodbury6-Aug-08 10:36 
GeneralRe: Multicast Delegates Event Driven Architecture is there a way? Pin
danielgmx6-Aug-08 11:50
danielgmx6-Aug-08 11:50 
QuestionC# & webservice on Multiple servers Pin
balu123456-Aug-08 6:26
balu123456-Aug-08 6:26 
AnswerRe: CP Member Ignore - Repost Pin
Abhijit Jana6-Aug-08 17:59
professionalAbhijit Jana6-Aug-08 17:59 
QuestionProblem with Date Validation Pin
Verghese6-Aug-08 6:16
Verghese6-Aug-08 6:16 
AnswerRe: Problem with Date Validation Pin
Guffa6-Aug-08 10:04
Guffa6-Aug-08 10:04 
GeneralRe: Problem with Date Validation Pin
Verghese6-Aug-08 10:54
Verghese6-Aug-08 10:54 
GeneralRe: Problem with Date Validation Pin
Kjetil Svendsen6-Aug-08 23:18
Kjetil Svendsen6-Aug-08 23:18 
Question.NET DLL fails when called from Excel by restricted user Pin
Vikram A Punathambekar6-Aug-08 5:43
Vikram A Punathambekar6-Aug-08 5:43 
AnswerRe: .NET DLL fails when called from Excel by restricted user Pin
vikas amin6-Aug-08 10:55
vikas amin6-Aug-08 10:55 
QuestionGetting bitmap data from System.Windows.Shapes object Pin
AmitDey6-Aug-08 5:43
AmitDey6-Aug-08 5:43 
AnswerRe: Getting bitmap data from System.Windows.Shapes object Pin
Mark Salsbery6-Aug-08 6:10
Mark Salsbery6-Aug-08 6:10 
GeneralRe: Getting bitmap data from System.Windows.Shapes object Pin
AmitDey6-Aug-08 6:30
AmitDey6-Aug-08 6:30 
I tried this

Line l = new Line();
l.X1 = 0;
l.Y1 = 0;
l.X2 = 100;
l.Y2 = 100;
l.Stroke = Brushes.Black;
canvas1.Children.Add(l);
canvas1.UpdateLayout();

RenderTargetBitmap rmi = new RenderTargetBitmap(
(int)canvas1.ActualWidth, (int)canvas1.ActualHeight,
1 / 96, 1 / 96, PixelFormats.Pbgra32);

rmi.Render(canvas1);

Can you tell me what to do next in order to get array of pixels.

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.