English Bitmap loader icon

15 comments
09.09.10 10:35:55 am
like 12 like it!
3 kb, 160 Downloads
Flacko
User
Offline Off
This script is intended for developers only.

This script can load a bitmap (BMP) file, however, only the data from uncompressed bitmap files will be read.

Currently, only 24bpp color is supported, plus 8bpp in grayscale works too, however, this is not going to work with other color depths and it's not planned neither.

The only thing you will need is a single call to the loadBitmap(path) function to load your image. Given a path to your image as the first parameter, the function will first attempt to determine the format of the image based on it's file headers (NOT the file extension) and then it will read some misc data (you can find more about this at the last commented section in the file bitmap.lua)

Take in count that only the image data from bmp files will be read, so you should get a pixel's color info only from this files.

An example is included in the zip file.
image
edited 1×, last 09.09.10 10:37:40 am

Comments

15 comments
Goto Page
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in
26.01.13 12:27:09 am
Up
resullan
User
Offline Off
Factis:Nice work...
minimujm twenteen charcters
Yes work
06.07.12 09:24:36 am
like I like it!
Up
Bolt
User
Offline Off
Why so good script has got only 11 likes? It's really nice idea, good work and very usable, I like it!
17.07.11 10:15:55 am
like I like it!
Up
Crystal Rain
User
Offline Off
Nice work...
minimujm twenteen charcters
17.07.11 06:37:52 am
like I like it!
Up
archmage
Idiot
Offline Off
Great script.

In my minimap script. file cs2d Minimap [Updated] - Dark Byte (11)
There is a function that saves a bitmap image. If anyone needs it they are free to use it.
17.07.11 04:30:49 am
like I like it!
Up
Andrez
User
Offline Off
hola te vengo a poner 5 estrellas x el gay ese q te puso 1 sola
11.06.11 01:22:24 pm
like I like it!
Up
tom282f3
User
Offline Off
Awesome! Good for developers!

@Viper97:
If it's easy why don't you make one and upload it so we can see it?
11.06.11 08:52:38 am
like I like it!
Up
SANTER
User
Offline Off
IMG:http://s30.ucoz.net/sm/2/cranky.gif
22.11.10 06:13:43 pm
like I like it!
Up
kNedLiik
User
Offline Off
This is epic!
AWESOME work
22.11.10 05:48:09 pm
like I like it!
Up
Vectar666
User
Offline Off
Wow, finally found it! That's AWESOME! I'll use it for some serious script.
22.11.10 04:39:48 pm
like I like it!
Up
Yasday
User
Offline Off
wow this is good work flacko
10.09.10 11:01:47 am
like I like it!
Up
Pikachu xD
User
Offline Off
Nice converting a BMP image to text
Too bad I am not professional at developing and all that
10.09.10 02:39:40 am
like I like it!
Up
archmage
Idiot
Offline Off
Great job
-------------------
edited 1×, last 11.06.11 07:57:25 pm
09.09.10 06:47:07 pm
Up
Flacko
User
Offline Off
People, this script was mainly meant for aligning images correctly and stuff related to images' sizes when using them.
The pixel loading stuff was just an extra I added when vectar requested it
Also remember that this is not for noobs!

@Roman: He isn't serious, he can't even use proper grammar.
09.09.10 05:13:22 pm
like I like it!
Up
Dead men
BANNED
Offline Off
Bit map nice idea, Viper97 no easy to many peoples rating is 5+
09.09.10 11:09:09 am
like I like it!
Up
Time
User
Offline Off
Just when I thought it was impossible, Flacko did eet. Sweet.
Too bad it's rather useless.
To the start Previous 1 Next To the start