Menu

get and put

Android
snorriban
2013-07-20
2013-07-23
  • snorriban

    snorriban - 2013-07-20

    put ignores the scale factor.
    [IN WINDOWS version put does the same. put also doesn't work with strings from get although it does with bmps loaded from files; i assume this is a problem with get.]

    the documentation for get is conflicted:

    The command summary has "get x,y,width, height, t$"
    This seems to be correct. The detailed documantation for get has "get x1,y1,x2,y2,t$" where
    x2,y2 are lower right corner. This seems to be incorrect.

     
  • Markus Hoffmann

    Markus Hoffmann - 2013-07-21

    Yes, confirmed. GET ist not working in the WINDOWS version. I have no code to do that (so far). (Make a bmp file out of a SDL surface). Is Someone willing to provide this?

    confirmed: PUT scale factor is not working under ANdroid, but it should work under linux and WINDOWS.

    Other thing:
    get x,y,width, height, t$ is how it is implemented.
    (But I think it should be get x1,y1,x2,y2,t$ for compatibility with GFA-Basic)

     
  • Markus Hoffmann

    Markus Hoffmann - 2013-07-21

    Good news:

    The problem with PUT (scale factor) is fixed. Android Version 1.21-65 will have that corrected.

     
  • snorriban

    snorriban - 2013-07-21

    On WINDOWS, put works with an unspecified or scale factor of 1. If the scale factor is less than 1 various weird affine transformations and/or duplications of the image occurs depending on the value. If the scale factor is greater than 1, the program crashes.

     
  • Markus Hoffmann

    Markus Hoffmann - 2013-07-22

    All right. I think I have fixed it now. Please check out version 1.21-66.

     
  • snorriban

    snorriban - 2013-07-23

    Markus, you are a wonder worker! I have tried both the android and windows version. The put scale factor works just fine in both. And get now works in windows -- when just 2 days ago you were wishing for a SDL surface to bmp routine! Neither version of put wants parameters past the scale factor, so I guess the transparency and clipping rectangle parameters are future targets.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.