ScratchData LogoScratchData
Back to MCAnimator3D's profile

BMP Bitmap Importer v1.3

MCMCAnimator3D•Created February 14, 2018
BMP Bitmap Importer v1.3
30
24
922 views
View on Scratch

Instructions

Hello! This is a project that allows you to import any uncompressed 32-bit and 24-bit Windows formatted bitmap (.bmp) image into Scratch at runtime. Go to http://mcanimator3d.tk/file-to-bytes to convert your .bmp file to a byte array. Importing a file like this was waaayyyy easier than I thought, at least easier than importing a MIDI file. Using this method of image loading opens up a whole new world of manipulating image data such as 3D textures, color correction and more.

Description

I learned how the format works with this: http://www.dragonwins.com/domains/getteched/bmp/bmpfileformat.htm Press Space to show variables Try images from Google Images bitmap search: https://www.google.com/search?as_st=y&biw=1920&bih=949&tbs=ift%3Abmp&tbm=isch&sa=1&ei=2FmEWqOTCuymjwS1-aHwBw&q=images&oq=images&gs_l=psy-ab.3..0i67k1l4j0j0i67k1l2j0l2j0i67k1.159086.159765.0.159860.6.6.0.0.0.0.120.353.0j3.3.0....0...1c.1.64.psy-ab..3.3.352....0.po41YHQoFUY Version history: v1.3: -Fixed red channel being offset by 1 byte due to incorrect pointer starting position v1.2: -Fixed 24-bit stretching if the image had an odd number width v1.1 -Added more variables to see when you press space v1: -Release

Project Details

Project ID203937397
CreatedFebruary 14, 2018
Last ModifiedMarch 8, 2018
SharedFebruary 14, 2018
Visibilityvisible
CommentsAllowed