Click here to Skip to main content
15,887,822 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Converting Text to Numbers [modified] Pin
Thomas Stockwell3-Feb-07 7:41
professionalThomas Stockwell3-Feb-07 7:41 
AnswerRe: Converting Text to Numbers Pin
Guffa3-Feb-07 8:54
Guffa3-Feb-07 8:54 
AnswerRe: Converting Text to Numbers Pin
MikeMarq3-Feb-07 11:46
MikeMarq3-Feb-07 11:46 
GeneralRe: Converting Text to Numbers Pin
Guffa3-Feb-07 12:28
Guffa3-Feb-07 12:28 
GeneralRe: Converting Text to Numbers Pin
Thomas Stockwell3-Feb-07 15:52
professionalThomas Stockwell3-Feb-07 15:52 
GeneralRe: Converting Text to Numbers Pin
CPP_Student4-Feb-07 21:55
CPP_Student4-Feb-07 21:55 
QuestionDataGridViewButtonColumn/Cell with bitmap on button face? Pin
Norm Byers2-Feb-07 15:48
Norm Byers2-Feb-07 15:48 
QuestionGray Scale [modified] Pin
Jim Warburton2-Feb-07 7:07
Jim Warburton2-Feb-07 7:07 
I am working with large bitmaps (in the range of 5000x5000 pixels) and found no support for loading the image with gray scale. The only supported 4 and 8 bit format is colour, what I found online was the 16 bit format doesn't work. Using a gray scale conversion after the fact was very time consuming. In the end I changed the palette of the 8 bit format using the following code


  ColorPalette pal = segyBMP.Palette; 
int j = 255;        
 for (int i = 0; i < pal.Entries.Length; i++)
            {
                pal.Entries[i] = Color.FromArgb(j, j, j);
                j--;
            }
            segyBMP.Palette = pal;

(The decrementing j is to reverse the black/white - saves me else where is the code.)
Does anyone know if there is a gray scale palette already in the system so I wouldn't have to make my own? Or a better way to handle the gray scale issue? I don't want/need colour and size does matter. I want to keep it to 8 or maybe 4 bit format.

Jim




-- modified at 13:20 Friday 2nd February, 2007
AnswerRe: Gray Scale Pin
Luc Pattyn2-Feb-07 10:29
sitebuilderLuc Pattyn2-Feb-07 10:29 
AnswerRe: Gray Scale Pin
Christian Graus2-Feb-07 22:13
protectorChristian Graus2-Feb-07 22:13 
QuestionNeed help regarding Property grid. Pin
sandipan.neogi@gmail.com1-Feb-07 22:24
sandipan.neogi@gmail.com1-Feb-07 22:24 
AnswerRe: Need help regarding Property grid. Pin
Pete O'Hanlon1-Feb-07 22:36
mvePete O'Hanlon1-Feb-07 22:36 
QuestionReceiving COM events without TYPELIB Pin
Aleksey.Andreev1-Feb-07 21:51
Aleksey.Andreev1-Feb-07 21:51 
Questionelp mehow to insert undeletable image in word document Pin
Kumar Arun1-Feb-07 19:17
Kumar Arun1-Feb-07 19:17 
AnswerRe: elp mehow to insert undeletable image in word document Pin
Pete O'Hanlon1-Feb-07 22:32
mvePete O'Hanlon1-Feb-07 22:32 
QuestionQuestion Regarding WSE 2.0 and 3.0 Pin
sharmankit1-Feb-07 12:40
sharmankit1-Feb-07 12:40 
QuestionTable variables Pin
Hendrik Debedts1-Feb-07 10:58
Hendrik Debedts1-Feb-07 10:58 
QuestionExit For in C#? Pin
Hendrik Debedts1-Feb-07 6:38
Hendrik Debedts1-Feb-07 6:38 
AnswerRe: Exit For in C#? Pin
PIEBALDconsult1-Feb-07 6:41
mvePIEBALDconsult1-Feb-07 6:41 
GeneralRe: Exit For in C#? Pin
Hendrik Debedts1-Feb-07 6:51
Hendrik Debedts1-Feb-07 6:51 
GeneralRe: Exit For in C#? Pin
Pete O'Hanlon1-Feb-07 9:07
mvePete O'Hanlon1-Feb-07 9:07 
GeneralRe: Exit For in C#? Pin
led mike1-Feb-07 10:28
led mike1-Feb-07 10:28 
GeneralRe: Exit For in C#? Pin
Alexandru Lungu2-Feb-07 6:09
professionalAlexandru Lungu2-Feb-07 6:09 
GeneralRe: Exit For in C#? Pin
Pete O'Hanlon2-Feb-07 8:32
mvePete O'Hanlon2-Feb-07 8:32 
GeneralRe: Exit For in C#? Pin
PIEBALDconsult2-Feb-07 8:34
mvePIEBALDconsult2-Feb-07 8: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.