• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • FMSLogo
  • Bugs
FMSLogo

BITLOAD cannot load top-down bitmap images

A Logo programming environment for Microsoft Windows

Brought to you by: david_costanzo
  • Summary
  • Files
  • Reviews
  • Support
  • Tickets ▾
    • Feature Requests
    • Bugs
    • Support Requests
  • Discussion
  • Code
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

  • v_6.06x
  • v_6.07.X
  • v_6.08.X
  • v_6.10.X
  • v_6.11.X
  • v_6.13.X
  • v_6.22.X
  • v_6.25.X
  • v_6.26.X
  • v_6.27.X
  • v_6.28.X
  • v_6.29.X

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#577 BITLOAD cannot load top-down bitmap images

v_6.06x
closed-fixed
nobody
None
5
2021-11-29
2021-10-12
David Costanzo
No

A BMP file (Windows device independent bitmap) can be stored top-down so that the top line of the image is at the beginning. Internally, the is specified by giving a negative height. When FMSLogo tries to load such an image, it does nothing. This is true for both BITLOAD and the Bitmap -> Load... menu item. Furthermore BITLOADSIZE returns a negative height instead of a positive height.

I found this when writing regression tests using the bmptestsuite. No one has ever reported this, so I expect that top-down images are uncommon.

How Reproducible:
Every Time

Steps to Reproduce:

  1. Download the attached file.
  2. Start FMSLogo
  3. SHOW BITLOADSIZE "32bpp-towdown-320x240.bmp
  4. BITLOAD "32bpp-towdown-320x240.bmp
  5. Bitmap -> Load... and load the file.

What Happens:
In Step 3, the size is output as [320 -240].
In Step 4 and 5, no image is drawn in FMSLogo.

Expected Result:
In Step 3, the size is output as [320 240].
In Step 4 and 5, an image with three color bands is drawn at the turtle's location. The words "TOP LEFT" appear in the top left corner of the image.

1 Attachments
32bpp-topdown-320x240.bmp

Discussion

  • David Costanzo

    David Costanzo - 2021-10-16

    I have reproduced this on MSWLogo 6.5b, so it's not a regression in FMSLogo.

     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • David Costanzo

    David Costanzo - 2021-11-29
    • status: open --> closed-fixed
     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
  • David Costanzo

    David Costanzo - 2021-11-29

    I have fixed this by updating the bitmap reading logic to use wxImage to load the bitmap. This will be available in FMSLogo 8.3.0.

     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    1320 Columbia Street Suite 310
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2026 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
mdb logo