Graphicswindow.drawresizedimage error, file already exists RRS feed

  • General discussion

  •  GraphicsWindow.Height = 400
     GraphicsWindow.Width = 600

      Fairytailpic = "https://upload.wikimedia.org/wikipedia/commons/d/d5/Chess_Board.svg"  '168 x 300'

     GraphicsWindow.DrawResizedImage(Fairytailpic, 0,300, 610,100)

    i am getting this picture from the internet. 

    When i try to run this code i get this error. Never happened to me before.

    This is causing massive issues from the fairytail game that was already created before this error. Now i cant run the game because this error comes up.



    Tuesday, April 12, 2016 8:19 PM

All replies

  • Better use this link: 600px-Chess_Board.svg.png

    or any other size, but use a .png and HTTP  protocol (not https)

    from this site: https://commons.wikimedia.org/wiki/File:Chess_Board.svg

    Tuesday, April 12, 2016 9:17 PM
  • Right, getting files from my computer is not an issue, but why when i get files from the internet, does that program not work.


    Tuesday, April 12, 2016 9:30 PM
  • ... getting files from my computer ??

    This way should work, getting files from the internet:

    GraphicsWindow.DrawResizedImage(Fairytailpic, 0,300, 610,100)

    You cannot load a .SVG file with GraphicsWindow.DrawResizedImage or -.DrawImage, instead use a .png, jpg etc. image file type.

    Does'nt it work ??

    If not working though, maybe look in task manager if there's a previous instance running of the programm, ev.  as 'tmp....exe'.


    SVG is a text based (xml) file, while .png is an image that can be loaded in GraphicsWindow

    To see the difference, you can:

    1.) Start empty notepad.exe - File - Open.. , enter


    under file name into the dialog box, then 'OK'.
    Wait some secs and see the xml Text.

    2. Do the same with


    and see the binary content of the PNG: ‰PNG  header etc....

    Tuesday, April 12, 2016 10:09 PM
  • nope still didnt work. there isnt another instace because i only have one window opened of smallbasic.


    Tuesday, April 12, 2016 11:42 PM
  • Hi Mat !

    try this little code and  tell me if you see 4 chessboards image ? program : VVS441

    here is the listing:


    GraphicsWindow.top= 0
    GraphicsWindow.left= 0
    GraphicsWindow.Height = 700
    GraphicsWindow.Width = 700


    GraphicsWindow.DrawresizedImage(image1, 0, 0,250,250)

    GraphicsWindow.DrawresizedImage(image2,400,0, 250,250)

    GraphicsWindow.DrawresizedImage(image3,0,400, 250,250)

    GraphicsWindow.DrawresizedImage(image4,400,400, 250,250)

    Wednesday, April 13, 2016 12:43 AM
  • no i do not. i still get the same error.


    Wednesday, April 13, 2016 1:47 AM
  • Try cleaning temp : using disk cleanup tool or just deleting all files from %temp%.
    Wednesday, April 13, 2016 10:39 AM
  • where would i find thatfile?


    Wednesday, April 13, 2016 3:17 PM
  • C:Users/XXXX/appdata/local/temp ? and delete all the stuff in there?


    Wednesday, April 13, 2016 3:22 PM
  • Yes - close all open apps first - don't worry about a few items that won't delete.

    If unsure, then use disk cleanup  tool.

    Small Basic and other programs can leave orphaned files in temp and eventually run pout of available names - I clean my %temp% every time I boot.

    Wednesday, April 13, 2016 3:32 PM
  • there are like 30,000 files in there. is that the right folder?


    Wednesday, April 13, 2016 4:07 PM
  • ok it worked. thanks so much,


    Wednesday, April 13, 2016 4:16 PM