Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
GeneralRe: null reference exception not set to create an object instance Pin
Ravenet13-Mar-08 17:07
Ravenet13-Mar-08 17:07 
GeneralRe: null reference exception not set to create an object instance Pin
Justin Perez14-Mar-08 3:00
Justin Perez14-Mar-08 3:00 
Generalcrystal report issue (hiding objct at runtime) Pin
Harvey Saayman13-Mar-08 7:46
Harvey Saayman13-Mar-08 7:46 
QuestionPreventing moving a toolstrip from one toolstripcontainer to another Pin
RobMaddison13-Mar-08 7:32
RobMaddison13-Mar-08 7:32 
QuestionHow to save drawing from picture box drawn in GDI+ into bmp file type? Pin
yuenli13-Mar-08 5:54
yuenli13-Mar-08 5:54 
AnswerRe: How to save drawing from picture box drawn in GDI+ into bmp file type? Pin
led mike13-Mar-08 6:09
led mike13-Mar-08 6:09 
GeneralRe: How to save drawing from picture box drawn in GDI+ into bmp file type? Pin
leppie13-Mar-08 8:33
leppie13-Mar-08 8:33 
AnswerRe: How to save drawing from picture box drawn in GDI+ into bmp file type? Pin
Skippums13-Mar-08 6:55
Skippums13-Mar-08 6:55 
Copy over your current code export_Click method with this...
private void export_Click(object sender, RoutedEventArgs e) {
    /* int width = bitmap.Width;
     * int height = bitmap.Height;
     * int i, j;
     * for (i = 0; i < width; i++) {
     *     for (j = 0; j < height; j++) {
     *         System.Drawing.Color pixelColor = bitmap.GetPixel(i, j);
     *         System.Drawing.Color newcolor = System.Drawing.Color.White;
     *         bitmap.SetPixel(i, j, newcolor);
     *     }
     * }
     */
    bitmap.Save(@"C:\concept1.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
    MessageBox.Show("The created concept map has been exported to your local drive");
}
Glad I could help,

Sounds like somebody's got a case of the Mondays

-Jeff

GeneralRe: How to save drawing from picture box drawn in GDI+ into bmp file type? Pin
yuenli13-Mar-08 13:43
yuenli13-Mar-08 13:43 
GeneralRe: How to save drawing from picture box drawn in GDI+ into bmp file type? Pin
KaptinKrunch13-Mar-08 17:11
KaptinKrunch13-Mar-08 17:11 
GeneralEditing ComboBox with DataSource Pin
polishprogrammer13-Mar-08 5:44
polishprogrammer13-Mar-08 5:44 
GeneralToolbox icon for user control Pin
hain13-Mar-08 5:25
hain13-Mar-08 5:25 
GeneralRe: Toolbox icon for user control Pin
led mike13-Mar-08 5:37
led mike13-Mar-08 5:37 
GeneralRe: Toolbox icon for user control Pin
hain13-Mar-08 5:44
hain13-Mar-08 5:44 
GeneralRe: Toolbox icon for user control Pin
led mike13-Mar-08 6:05
led mike13-Mar-08 6:05 
GeneralRe: Toolbox icon for user control [modified] Pin
hain13-Mar-08 6:17
hain13-Mar-08 6:17 
GeneralRe: Toolbox icon for user control Pin
led mike13-Mar-08 8:16
led mike13-Mar-08 8:16 
GeneralRe: Toolbox icon for user control Pin
leppie13-Mar-08 8:30
leppie13-Mar-08 8:30 
GeneralRe: Toolbox icon for user control Pin
hain13-Mar-08 10:17
hain13-Mar-08 10:17 
GeneralRe: Toolbox icon for user control Pin
hain13-Mar-08 10:20
hain13-Mar-08 10:20 
GeneralUnable to connect to Web Service Pin
Manoj Sethi13-Mar-08 5:01
Manoj Sethi13-Mar-08 5:01 
GeneralRe: Unable to connect to Web Service Pin
Muhammad Gouda13-Mar-08 5:04
Muhammad Gouda13-Mar-08 5:04 
GeneralRe: Unable to connect to Web Service Pin
James J. Foster13-Mar-08 6:46
James J. Foster13-Mar-08 6:46 
GeneralRe: Unable to connect to Web Service Pin
Skippums13-Mar-08 6:46
Skippums13-Mar-08 6:46 
GeneralRe: Unable to connect to Web Service Pin
leppie13-Mar-08 10:57
leppie13-Mar-08 10:57 

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.