How can Small Basic access pictures under Q&A

Scout 136 Reputation points
2021-01-08T19:18:06.63+00:00

How can a Small Basic program to be published access images.
So far it was possible via the forum link (msdn) of the picture.
Can this also be carried out under Q&A (docs) or is the JPG file with 1.8MB not permitted?

'cow = Shapes.AddImage("/api/attachments/54924--igp0075-mini.jpg")?platform=QnA  
    
  cow = Shapes.AddImage("https://social.msdn.microsoft.com/Forums/getfile/1353849")  
Small BASIC
Small BASIC
A programming language created by Microsoft that serves a stepping stone for beginners from block-based coding languages to more complex text-based languages.
277 questions
{count} votes

7 answers

Sort by: Most helpful
  1. Scout 541 Reputation points
    2021-02-26T22:08:49.133+00:00

    The method of the high resolution small picture within the SmallBasic program has its limits.
    When expanding to larger formats, it becomes either smooth (zoom) or pixelated.
    ProgramID: PWL034
    72566-zoomversusdoublepixel.png
    For the window background or for larger objects, I recommend uploading the picture to Q&A. The user cannot download it directly from SmallBasic, but it can be downloaded to the program directory and loaded as a file.

    So the method via array remains only for smaller shapes or with less color depth.

    The future for SmallBasic graphics is more with shape editors (Nonki, Litdev) and for backgrounds CF or similar.

    0 comments No comments

  2. Guillermo Ramon 0 Reputation points
    2023-06-03T06:56:54.58+00:00

    This is a question, not an answer.

    Can Small Basic accept a relative address to the picture? This way, as long as the program and the picture are in the same folder, the program can include the image wherever it is placed.