Silme94
Silme94
CC#
Created by Silme94 on 11/19/2024 in #help
Windows Forms drawing not saving
thank you for trying to help
26 replies
CC#
Created by Silme94 on 11/19/2024 in #help
Windows Forms drawing not saving
man idk
26 replies
CC#
Created by Silme94 on 11/19/2024 in #help
Windows Forms drawing not saving
without the drawing
26 replies
CC#
Created by Silme94 on 11/19/2024 in #help
Windows Forms drawing not saving
Bitmap bitmap = new Bitmap(pageImage.Width, pageImage.Height, g);
26 replies
CC#
Created by Silme94 on 11/19/2024 in #help
Windows Forms drawing not saving
@MonJamp it just save a blank page
26 replies
CC#
Created by Silme94 on 11/19/2024 in #help
Windows Forms drawing not saving
26 replies
CC#
Created by Silme94 on 11/19/2024 in #help
Windows Forms drawing not saving
uh i think
26 replies
CC#
Created by Silme94 on 11/19/2024 in #help
Windows Forms drawing not saving
i think so, but then how can i save the Graphics too?
26 replies
CC#
Created by Silme94 on 11/19/2024 in #help
Windows Forms drawing not saving
like on the picturebox i see that i drew but when it comes to save it to a file the changes dont applies
26 replies
CC#
Created by Silme94 on 11/19/2024 in #help
Windows Forms drawing not saving
the image does not change, it keep original and the drawing does not affect
26 replies
CC#
Created by Silme94 on 11/19/2024 in #help
Windows Forms drawing not saving
im able to draw on the window, but when it comes to save, it does not work
26 replies
CC#
Created by Silme94 on 11/19/2024 in #help
Windows Forms drawing not saving
look at PageImage_MouseUp event
26 replies
CC#
Created by Silme94 on 11/19/2024 in #help
Windows Forms drawing not saving
private bool isDrawing = false;
private Point pos;
private Pen drawingPen;


private void PageImage_MouseDown(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
isDrawing = true;
pos.X = e.X;
pos.Y = e.Y;
}
}

private void PageImage_MouseDrawMove(object sender, MouseEventArgs e)
{
if (isDrawing)
{
g.DrawLine(drawingPen, pos, e.Location);

pos = e.Location;
}
}

private void PageImage_MouseUp(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
isDrawing = false;


Bitmap bitmap = new Bitmap(pageImage.Image);
bitmap.Save(pageImage.ImageLocation);
}
}
private bool isDrawing = false;
private Point pos;
private Pen drawingPen;


private void PageImage_MouseDown(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
isDrawing = true;
pos.X = e.X;
pos.Y = e.Y;
}
}

private void PageImage_MouseDrawMove(object sender, MouseEventArgs e)
{
if (isDrawing)
{
g.DrawLine(drawingPen, pos, e.Location);

pos = e.Location;
}
}

private void PageImage_MouseUp(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
isDrawing = false;


Bitmap bitmap = new Bitmap(pageImage.Image);
bitmap.Save(pageImage.ImageLocation);
}
}
26 replies
CC#
Created by Silme94 on 11/19/2024 in #help
Windows Forms drawing not saving
how i create Graphics instance
g = pageImage.CreateGraphics();
g = pageImage.CreateGraphics();
26 replies
CC#
Created by Silme94 on 10/22/2024 in #help
Loading Form crashing (Windows Form)
@Nasdack ?
32 replies
CC#
Created by Silme94 on 10/22/2024 in #help
Loading Form crashing (Windows Form)
you will see
32 replies
CC#
Created by Silme94 on 10/22/2024 in #help
Loading Form crashing (Windows Form)
launch the app, go on "Ficher" after go on "Ouvrir" and open any pdf file
32 replies
CC#
Created by Silme94 on 10/22/2024 in #help
Loading Form crashing (Windows Form)
bro try to get my code on my github and you will see
32 replies
CC#
Created by Silme94 on 10/22/2024 in #help
Loading Form crashing (Windows Form)
it dont work
32 replies
CC#
Created by Silme94 on 10/22/2024 in #help
Loading Form crashing (Windows Form)
@Nasdack
32 replies