Jibble

Author Topic: MODULE: ReadBMP v1.1 (with flood fill and colour replace)  (Read 2847 times)

SSH

  • Posts: 5,710
  • Flying round the world at the speed of haggis
    • I can help with scripting
    • SSH worked on a game that won an AGS Award!
    •  
    • SSH worked on a game that was nominated for an AGS Award!
AGS currently lacks the ability to do a Flood Fill, and so I've created a way to do it. It works on read-in BMP files (and so you can do a screenshot, etc if you want to do it on the screen). Now, the module also gives you the ability to make your own image manipulations on the data structure if you like.

Download ReadBMP here (Requires AGS v2.71!)

v1.1: Added a colour replacing function and fixed a bug which meant that if you loaded a BMP where the remainder of dividing the width by 4 was equal to 3 then you got a corrupted import.
« Last Edit: 22 May 2006, 22:21 by strazer »

Scorpiorus

  • Posts: 2,492
  • 100101101010b
Re: MODULE: ReadBMP v1.00 (with flood fill)
« Reply #1 on: 05 May 2006, 18:16 »
Clever stuff, yeah it may possibly be slow (especially reading large bitmaps) but still a good workaround at the moment :)

SSH

  • Posts: 5,710
  • Flying round the world at the speed of haggis
    • I can help with scripting
    • SSH worked on a game that won an AGS Award!
    •  
    • SSH worked on a game that was nominated for an AGS Award!
Yeah, forgot to say... it's OK up to about BMPs of 50x100, but after that, sloooooow

Edit:

Fixed a bug and added some functionality... see first post
« Last Edit: 22 May 2006, 22:22 by strazer »

Construed

  • Posts: 644
  • The fear of the LORD is the beginning of wisdom.
    • I can help with AGS tutoring
    • I can help with animation
    • I can help with backgrounds
    • I can help with characters
    • I can help with making music
    • I can help with play testing
    • I can help with proof reading
    • I can help with scripting
    • I can help with story design
    • I can help with translating
    • I can help with voice acting
    • I can help with web design
Its gone :(
I felt sorry for myself because I had no shoes.
Then I met the man with no feet.

Dualnames

  • Local Moderator
  • Posts: 7,192
  • Pretty Badass
    • Dualnames worked on a game that won an AGS Award!
    •  
    • Dualnames worked on a game that was nominated for an AGS Award!
No more military army stuff. I'm alive and back.

SSH

  • Posts: 5,710
  • Flying round the world at the speed of haggis
    • I can help with scripting
    • SSH worked on a game that won an AGS Award!
    •  
    • SSH worked on a game that was nominated for an AGS Award!
Its hardly necessary with the latest AGSes, anyway

Construed

  • Posts: 644
  • The fear of the LORD is the beginning of wisdom.
    • I can help with AGS tutoring
    • I can help with animation
    • I can help with backgrounds
    • I can help with characters
    • I can help with making music
    • I can help with play testing
    • I can help with proof reading
    • I can help with scripting
    • I can help with story design
    • I can help with translating
    • I can help with voice acting
    • I can help with web design
Thanks!
Indeed, i guess the commands are included now?
I felt sorry for myself because I had no shoes.
Then I met the man with no feet.

Monsieur OUXX

  • Posts: 3,554
  • Mittens Half Initiate
    • I can help with proof reading
    • I can help with translating
    • I can help with voice acting
I'm taking the liberty to dig up this thread, so that anyone who might stumble across it by googling be aware that there is something more recent to do the same : Version 2.0 http://www.adventuregamestudio.co.uk/forums/index.php?topic=51142.msg636498255#msg636498255
(that's almost a brand new module now, so I created a new thread)