idek
This commit is contained in:
parent
3133ae8457
commit
baaeb429cb
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ public class Context {
|
|||
static BufferedImage bufferedImage = new BufferedImage(Window.paintArea.getWidth(), Window.paintArea.getHeight(), BufferedImage.TYPE_INT_ARGB);
|
||||
static RenderedImage renderedImage;
|
||||
|
||||
static Graphics g = bufferedImage.createGraphics();
|
||||
static Graphics g = Window.paintArea.getGraphics();
|
||||
|
||||
public static void drawBorders(Graphics g)
|
||||
{
|
||||
|
|
|
@ -11,7 +11,7 @@ public class Save {
|
|||
|
||||
try
|
||||
{
|
||||
ImageIO.write(Context.renderedImage, "png", Window.filePicker.getSelectedFile());
|
||||
ImageIO.write(Window.paintArea.getGraphics(), "png", Window.filePicker.getSelectedFile());
|
||||
Log.print("[INFO] Image Saved!");
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue