inexQ
inexQ
CC#
Created by inexQ on 12/26/2022 in #help
❔ 2 Errors in image downloading
Hey @Angius! Thank you! I deleted string with code if(pictureBox1.Image == null) {} and code now working!!!
48 replies
CC#
Created by inexQ on 12/26/2022 in #help
❔ 2 Errors in image downloading
if pictureBox image == null - save this image
48 replies
CC#
Created by inexQ on 12/26/2022 in #help
❔ 2 Errors in image downloading
null
48 replies
CC#
Created by inexQ on 12/26/2022 in #help
❔ 2 Errors in image downloading
and here is this string:
if(pictureBox1.Image == null)
if(pictureBox1.Image == null)
48 replies
CC#
Created by inexQ on 12/26/2022 in #help
❔ 2 Errors in image downloading
i think itš null
48 replies
CC#
Created by inexQ on 12/26/2022 in #help
❔ 2 Errors in image downloading
Maybe the error is that there are empty buttons without code, or buttons that have an action created and are not inside the code?
48 replies
CC#
Created by inexQ on 12/26/2022 in #help
❔ 2 Errors in image downloading
i launched file with debbuging, all is working, but not save button
48 replies
CC#
Created by inexQ on 12/26/2022 in #help
❔ 2 Errors in image downloading
my error is that what i can't save image in imagebox with button. Program showing savedialog but without saving file, i think warnings are same with this error
48 replies
CC#
Created by inexQ on 12/26/2022 in #help
❔ 2 Errors in image downloading
Do I need to edit private class on public class?
48 replies
CC#
Created by inexQ on 12/26/2022 in #help
❔ 2 Errors in image downloading
What i need to do
48 replies
CC#
Created by inexQ on 12/26/2022 in #help
❔ 2 Errors in image downloading
wait
48 replies
CC#
Created by inexQ on 12/26/2022 in #help
❔ 2 Errors in image downloading
oh
48 replies
CC#
Created by inexQ on 12/26/2022 in #help
❔ 2 Errors in image downloading
graphics = Graphics.FromImage(map);
48 replies
CC#
Created by inexQ on 12/26/2022 in #help
❔ 2 Errors in image downloading
private class ArrayPoints
{
private int index = 0;
private Point[] points;
public ArrayPoints(int size)
{
if(size <= 0) { size = 2; }
points = new Point[size];
}
public void SetPoint(int x, int y)
{
if(index >= points.Length)
{
index = 0;
}
points[index] = new Point(x, y);
index++;
}
public void ResetPoints()
{
index = 0;
}
public int GetCountPoints()
{
return index;
}
public Point[] GetPoints()
{
return points;
}
}
private bool isMouse = false;
private ArrayPoints arrayPoints = new ArrayPoints(2);
Bitmap map = new Bitmap(100, 100);
Graphics graphics;
Pen pen = new Pen(Color.Black, 3f);

private void SetSize()
{
Rectangle rectangle = Screen.PrimaryScreen.Bounds;
map = new Bitmap(rectangle.Width, rectangle.Height);
graphics = Graphics.FromImage(map);
pen.StartCap = System.Drawing.Drawing2D.LineCap.Round;
pen.EndCap = System.Drawing.Drawing2D.LineCap.Round;
}
private class ArrayPoints
{
private int index = 0;
private Point[] points;
public ArrayPoints(int size)
{
if(size <= 0) { size = 2; }
points = new Point[size];
}
public void SetPoint(int x, int y)
{
if(index >= points.Length)
{
index = 0;
}
points[index] = new Point(x, y);
index++;
}
public void ResetPoints()
{
index = 0;
}
public int GetCountPoints()
{
return index;
}
public Point[] GetPoints()
{
return points;
}
}
private bool isMouse = false;
private ArrayPoints arrayPoints = new ArrayPoints(2);
Bitmap map = new Bitmap(100, 100);
Graphics graphics;
Pen pen = new Pen(Color.Black, 3f);

private void SetSize()
{
Rectangle rectangle = Screen.PrimaryScreen.Bounds;
map = new Bitmap(rectangle.Width, rectangle.Height);
graphics = Graphics.FromImage(map);
pen.StartCap = System.Drawing.Drawing2D.LineCap.Round;
pen.EndCap = System.Drawing.Drawing2D.LineCap.Round;
}
48 replies
CC#
Created by inexQ on 12/26/2022 in #help
❔ 2 Errors in image downloading
wait
48 replies
CC#
Created by inexQ on 12/26/2022 in #help
❔ 2 Errors in image downloading
graphics?
48 replies
CC#
Created by inexQ on 12/26/2022 in #help
❔ 2 Errors in image downloading
I don't understand you what field
48 replies
CC#
Created by inexQ on 12/26/2022 in #help
❔ 2 Errors in image downloading
this is form1 file
48 replies
CC#
Created by inexQ on 12/26/2022 in #help
❔ 2 Errors in image downloading
namespace EvanPaint { public partial class Form1 : Form
48 replies
CC#
Created by inexQ on 12/26/2022 in #help
❔ 2 Errors in image downloading
waait
48 replies