Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
QuestionResizing of controls Pin
wasife22-Oct-05 6:09
wasife22-Oct-05 6:09 
AnswerRe: Resizing of controls Pin
MoustafaS22-Oct-05 6:52
MoustafaS22-Oct-05 6:52 
Questionunmanaged dll problems/questions Pin
FreeClimber22-Oct-05 5:52
FreeClimber22-Oct-05 5:52 
QuestionProblem in using DirectSound Pin
Anonymous22-Oct-05 3:12
Anonymous22-Oct-05 3:12 
AnswerRe: Problem in using DirectSound Pin
André Ziegler22-Oct-05 4:03
André Ziegler22-Oct-05 4:03 
Questionchanging image format Pin
XeoN-Kc22-Oct-05 2:16
XeoN-Kc22-Oct-05 2:16 
Hi there I've encountered a small problemo......
I'm trying to change brightness of an image...so far so good.

However I managed to make it work on 24-bit format images. When the filter is fed with an image which is either 8bit indexed or 32-bit formats...it fails!

...is there any way to access 8-bit indexed images with C# pointers!

I was observing this message board and found out the following code:
<br />
// create new image with desired pixel format<br />
Bitmap bmp = new Bitmap(width, height, PixelFormat.Format32bppArgb);<br />
<br />
// draw source image on the new one using Graphics<br />
Graphics g = Graphics.FromImage(bmp);<br />
g.DrawImage(src, 0, 0, width, height);<br />
g.Dispose();<br />

...Many thanks to Andy Kirillov

Does the above code...'store' my image as a 24 bit image?

The code project....a perfect experience Cool | :cool:

-- modified at 8:39 Saturday 22nd October, 2005
AnswerRe: changing image format Pin
Andrew Kirillov22-Oct-05 3:04
Andrew Kirillov22-Oct-05 3:04 
QuestionMemory consumption Pin
mohammad92922-Oct-05 2:15
mohammad92922-Oct-05 2:15 
QuestionHeader/Detail Approach Pin
dabuskol22-Oct-05 1:14
dabuskol22-Oct-05 1:14 
QuestionChanging Regional Settings Pin
Zapss22-Oct-05 0:54
Zapss22-Oct-05 0:54 
QuestionVisual Inheritance : Peculiar Behaviour VS.2005 Beta 2 Pin
akyriako7821-Oct-05 23:59
akyriako7821-Oct-05 23:59 
AnswerRe: Visual Inheritance : Peculiar Behaviour VS.2005 Beta 2 Pin
André Ziegler22-Oct-05 4:08
André Ziegler22-Oct-05 4:08 
QuestionHow convert string stream to XML ? Pin
Yanshof21-Oct-05 23:44
Yanshof21-Oct-05 23:44 
AnswerRe: How convert string stream to XML ? Pin
S. Senthil Kumar22-Oct-05 0:57
S. Senthil Kumar22-Oct-05 0:57 
QuestionPRODUCT KET VS.2005 BETA 2 Pin
Greeky21-Oct-05 23:43
Greeky21-Oct-05 23:43 
AnswerRe: PRODUCT KET VS.2005 BETA 2 Pin
XeoN-Kc22-Oct-05 2:52
XeoN-Kc22-Oct-05 2:52 
GeneralRe: PRODUCT KET VS.2005 BETA 2 Pin
André Ziegler22-Oct-05 3:56
André Ziegler22-Oct-05 3:56 
AnswerRe: PRODUCT KET VS.2005 BETA 2 Pin
Daniel Grunwald22-Oct-05 5:16
Daniel Grunwald22-Oct-05 5:16 
QuestionWebDav Protocol Methods Pin
Brihadish21-Oct-05 23:07
Brihadish21-Oct-05 23:07 
QuestionImage Converting to TGA,SVG etc.. Pin
idris cinn21-Oct-05 21:16
idris cinn21-Oct-05 21:16 
AnswerRe: Image Converting to TGA,SVG etc.. Pin
idris cinn23-Oct-05 20:25
idris cinn23-Oct-05 20:25 
Questionfiles address temp Pin
Member 161931221-Oct-05 20:31
Member 161931221-Oct-05 20:31 
QuestionServerControl TextBox ViewState Pin
antinyarun21-Oct-05 20:28
antinyarun21-Oct-05 20:28 
Questionsearch a string that is in database table or not Pin
antinyarun21-Oct-05 20:17
antinyarun21-Oct-05 20:17 
AnswerRe: search a string that is in database table or not Pin
sreesiri21-Oct-05 20:34
sreesiri21-Oct-05 20:34 

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.