Click here to Skip to main content
15,929,686 members
Home / Discussions / C#
   

C#

 
GeneralRe: P/Invoke data type conversion Pin
sreejith ss nair5-Oct-04 5:08
sreejith ss nair5-Oct-04 5:08 
GeneralRe: P/Invoke data type conversion Pin
Alex Korchemniy5-Oct-04 17:59
Alex Korchemniy5-Oct-04 17:59 
Generaldetection of files operation Pin
ppp0015-Oct-04 0:42
ppp0015-Oct-04 0:42 
GeneralRe: detection of files operation Pin
Stefan Troschuetz5-Oct-04 1:06
Stefan Troschuetz5-Oct-04 1:06 
GeneralC# output files Pin
Jose Vicente4-Oct-04 23:11
Jose Vicente4-Oct-04 23:11 
GeneralRe: C# output files Pin
Dave Kreskowiak4-Oct-04 23:52
mveDave Kreskowiak4-Oct-04 23:52 
GeneralRe: C# output files Pin
Jose Vicente4-Oct-04 23:55
Jose Vicente4-Oct-04 23:55 
Generalusing Graphics on an indexed image Pin
benjymous4-Oct-04 22:48
benjymous4-Oct-04 22:48 
I've been working on a graphics editor application, and so far it's working nicely with 32bit bitmaps. The problem I'm getting now is that I'm stumped as to what to do with indexed images

The following code works happily with 32bit images:
Graphics G = Graphics.FromImage(xBmp);
  Pen xPen = new Pen(xCurrentColor);

  G.DrawLine(xPen, xStart, xEnd); 

  G.Dispose();

But fails on the first line with an indexed image (as apparently Graphics doesn't support indexed images)

Is there something alternate I can use, or am I going to have to implement something myself from scratch?

I've thought about making an internal copy of the bitmap that is 32bit, and then just converting it down to an indexed image when necessary, but I'd much rather work directly on the indexed image itself

--
Help me! I'm turning into a grapefruit!
Phoenix Paint - back from DPaint's ashes!

GeneralRe: using Graphics on an indexed image Pin
Alex Korchemniy5-Oct-04 18:13
Alex Korchemniy5-Oct-04 18:13 
GeneralSending ANSI to Printer Driver Pin
myNameIsRon4-Oct-04 21:02
myNameIsRon4-Oct-04 21:02 
GeneralRe: Sending ANSI to Printer Driver Pin
Dave Kreskowiak4-Oct-04 23:44
mveDave Kreskowiak4-Oct-04 23:44 
GeneralRe: Sending ANSI to Printer Driver Pin
myNameIsRon5-Oct-04 5:43
myNameIsRon5-Oct-04 5:43 
GeneralRe: Sending ANSI to Printer Driver Pin
Dave Kreskowiak5-Oct-04 6:23
mveDave Kreskowiak5-Oct-04 6:23 
Generalcontrol instances at designtime Pin
mpff4-Oct-04 20:53
mpff4-Oct-04 20:53 
GeneralRe: control instances at designtime Pin
Dave Kreskowiak4-Oct-04 23:29
mveDave Kreskowiak4-Oct-04 23:29 
GeneralRe: control instances at designtime Pin
mpff4-Oct-04 23:55
mpff4-Oct-04 23:55 
GeneralRe: control instances at designtime Pin
Dave Kreskowiak5-Oct-04 0:13
mveDave Kreskowiak5-Oct-04 0:13 
GeneralRe: control instances at designtime Pin
mpff5-Oct-04 0:58
mpff5-Oct-04 0:58 
GeneralComboBox Pin
4-Oct-04 18:36
suss4-Oct-04 18:36 
GeneralRe: ComboBox Pin
Member 12723814-Oct-04 19:28
Member 12723814-Oct-04 19:28 
GeneralRe: ComboBox Pin
Stefan Troschuetz4-Oct-04 21:11
Stefan Troschuetz4-Oct-04 21:11 
GeneralRe: ComboBox Pin
HahnTech5-Oct-04 7:20
HahnTech5-Oct-04 7:20 
QuestionHow can I export a class of C++ to C#? Pin
ting6684-Oct-04 16:27
ting6684-Oct-04 16:27 
AnswerRe: How can I export a class of C++ to C#? Pin
Paul Lyons4-Oct-04 16:45
Paul Lyons4-Oct-04 16:45 
GeneralRe: How can I export a class of C++ to C#? Pin
Heath Stewart4-Oct-04 16:49
protectorHeath Stewart4-Oct-04 16:49 

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.