Click here to Skip to main content
15,890,123 members
Home / Discussions / C#
   

C#

 
GeneralRe: vRe: Create installers dynamically Pin
Jacob D Dixon21-Nov-10 15:46
Jacob D Dixon21-Nov-10 15:46 
AnswerRe: Create installers dynamically Pin
Mirko198022-Nov-10 2:14
Mirko198022-Nov-10 2:14 
GeneralRe: Create installers dynamically [modified] Pin
Jacob D Dixon22-Nov-10 11:33
Jacob D Dixon22-Nov-10 11:33 
QuestionConverting an particular color in an image to another color Pin
pancakeleh21-Nov-10 4:41
pancakeleh21-Nov-10 4:41 
AnswerRe: Converting color in an image [modified] Pin
Manfred Rudolf Bihy21-Nov-10 4:50
professionalManfred Rudolf Bihy21-Nov-10 4:50 
AnswerRe: Converting color in an image Pin
Richard Andrew x6421-Nov-10 4:51
professionalRichard Andrew x6421-Nov-10 4:51 
AnswerRe: Converting an particular color in an image to another color Pin
pancakeleh21-Nov-10 5:15
pancakeleh21-Nov-10 5:15 
GeneralRe: Converting an particular color in an image to another color Pin
_Erik_22-Nov-10 6:13
_Erik_22-Nov-10 6:13 
If you used really gray scale images, I mean, with pixel format set to Format8bppIndexed, you might do most of these things just changing and playing with the palette. For example, for changing black pixels to white ones, assuming the black color is in the first position of the palette:

ColorPalette pal = bmp.Palette;
pal.Entries[0] = Color.White;
bmp.Palette = pal;


But it seems that you are using the default Format32bppArgb, so you will have to iterate over the pixels once and again. For the further processing you need, you will just have to discard the pixels which are too light or too dark, iterating over all of them again.
QuestionGot a 512 error on calling acmStreamOpen() in c# Pin
Alegria_Lee20-Nov-10 14:30
Alegria_Lee20-Nov-10 14:30 
AnswerRe: Got a 512 error on calling acmStreamOpen() in c# Pin
Luc Pattyn20-Nov-10 16:36
sitebuilderLuc Pattyn20-Nov-10 16:36 
AnswerRe: Got a 512 error on calling acmStreamOpen() in c# Pin
Bernhard Hiller21-Nov-10 23:00
Bernhard Hiller21-Nov-10 23:00 
GeneralRe: Got a 512 error on calling acmStreamOpen() in c# Pin
Alegria_Lee22-Nov-10 1:11
Alegria_Lee22-Nov-10 1:11 
Questionheeeelp: saving and reading image C# and mySQL Pin
Jassim Rahma19-Nov-10 23:45
Jassim Rahma19-Nov-10 23:45 
AnswerRe: heeeelp: saving and reading image C# and mySQL Pin
thatraja20-Nov-10 1:34
professionalthatraja20-Nov-10 1:34 
AnswerRe: heeeelp: saving and reading image C# and mySQL Pin
Abhinav S20-Nov-10 1:53
Abhinav S20-Nov-10 1:53 
Questionget min and max from histogram [modified] Pin
pancakeleh19-Nov-10 22:35
pancakeleh19-Nov-10 22:35 
QuestionGhostScript Pin
Kevin Marois19-Nov-10 12:08
professionalKevin Marois19-Nov-10 12:08 
AnswerRe: GhostScript Pin
Keith Barrow21-Nov-10 1:06
professionalKeith Barrow21-Nov-10 1:06 
QuestionGetting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
Kushagra Tiwari19-Nov-10 3:13
Kushagra Tiwari19-Nov-10 3:13 
AnswerRe: Getting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
Luc Pattyn19-Nov-10 3:41
sitebuilderLuc Pattyn19-Nov-10 3:41 
AnswerRe: Getting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
Manfred Rudolf Bihy19-Nov-10 3:42
professionalManfred Rudolf Bihy19-Nov-10 3:42 
GeneralRe: Getting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
Kushagra Tiwari19-Nov-10 9:47
Kushagra Tiwari19-Nov-10 9:47 
AnswerRe: Getting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
Ian Shlasko19-Nov-10 10:03
Ian Shlasko19-Nov-10 10:03 
AnswerRe: Getting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
Kushagra Tiwari22-Nov-10 0:17
Kushagra Tiwari22-Nov-10 0:17 
GeneralRe: Getting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
GuzmanJ2-Mar-11 10:37
GuzmanJ2-Mar-11 10:37 

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.