Click here to Skip to main content
16,006,709 members
Home / Discussions / C#
   

C#

 
AnswerRe: Getting Icon information from which an application is run Pin
leppie30-Aug-06 0:59
leppie30-Aug-06 0:59 
QuestionIs it possible to serialise this in C#? [modified] Pin
stevenykl29-Aug-06 23:46
stevenykl29-Aug-06 23:46 
AnswerRe: Is it possible to serialise this in C#? Pin
Andrei Ungureanu29-Aug-06 23:56
Andrei Ungureanu29-Aug-06 23:56 
GeneralRe: Is it possible to serialise this in C#? Pin
stevenykl30-Aug-06 0:11
stevenykl30-Aug-06 0:11 
QuestionRegarting tree view Drag drop Pin
chandler8329-Aug-06 22:32
chandler8329-Aug-06 22:32 
QuestionDrawing Pin
Vsree29-Aug-06 22:03
Vsree29-Aug-06 22:03 
AnswerRe: Drawing Pin
Andrei Ungureanu29-Aug-06 23:39
Andrei Ungureanu29-Aug-06 23:39 
GeneralRe: Drawing Pin
Vsree30-Aug-06 0:06
Vsree30-Aug-06 0:06 
Actually i tried to load an JPEG image from file and set its pixel color to a new value and redraw it using Graphics object and save it in the file.

<br />
Color c;<br />
for ( int x=0; x<imgDefault.Width-1; x++ )<br />
{<br />
  for ( int y=0; y<imgDefault.Height-1; y++ )<br />
  {<br />
   c = imgDefault.GetPixel( x, y );<br />
   c = Color.FromArgb( c.ToArgb() + 100 );<br />
   imgDefault.SetPixel( x, y, c );<br />
   }<br />
}<br />
pe.Graphics.DrawImage( imgDefault, 0, 0 );<br />


I loaded a MRI Scan image of human brain and tried to do the above work,
which threw error as:"SetPixel is not supported by Indexed pixel format"

What does it mean?

Please help me
GeneralRe: Drawing Pin
Andrei Ungureanu30-Aug-06 0:22
Andrei Ungureanu30-Aug-06 0:22 
GeneralRe: Drawing Pin
Robert Rohde30-Aug-06 5:05
Robert Rohde30-Aug-06 5:05 
QuestionWM_SETFOCUS? Pin
wbjohnson29-Aug-06 22:01
wbjohnson29-Aug-06 22:01 
AnswerRe: WM_SETFOCUS? Pin
mav.northwind30-Aug-06 9:47
mav.northwind30-Aug-06 9:47 
QuestionAGC Control Pin
Rahul.RK29-Aug-06 21:35
Rahul.RK29-Aug-06 21:35 
QuestionGet & Set Pin
Legolas_Bilbao29-Aug-06 21:15
Legolas_Bilbao29-Aug-06 21:15 
AnswerRe: Get & Set Pin
Kevin McFarlane29-Aug-06 22:33
Kevin McFarlane29-Aug-06 22:33 
AnswerRe: Get & Set Pin
Divyang Mithaiwala29-Aug-06 22:36
Divyang Mithaiwala29-Aug-06 22:36 
AnswerRe: Get & Set Pin
NaNg1524129-Aug-06 22:40
NaNg1524129-Aug-06 22:40 
AnswerRe: Get & Set Pin
vikas amin29-Aug-06 23:44
vikas amin29-Aug-06 23:44 
AnswerThanks to all Pin
Legolas_Bilbao30-Aug-06 2:39
Legolas_Bilbao30-Aug-06 2:39 
GeneralRe: Thanks to all Pin
eggsovereasy30-Aug-06 3:34
eggsovereasy30-Aug-06 3:34 
GeneralRe: Thanks to all Pin
Legolas_Bilbao30-Aug-06 23:14
Legolas_Bilbao30-Aug-06 23:14 
QuestionUser Control properties? Pin
kbalias29-Aug-06 20:58
kbalias29-Aug-06 20:58 
QuestionUsing CRViewer Control From Form2 Pin
M Riaz Bashir29-Aug-06 20:39
M Riaz Bashir29-Aug-06 20:39 
QuestionEvent handler Maddness Pin
Squeaker29-Aug-06 20:02
Squeaker29-Aug-06 20:02 
AnswerRe: Event handler Maddness Pin
mav.northwind29-Aug-06 20:40
mav.northwind29-Aug-06 20:40 

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.