Files

> > CS2D > Lua Scripts > Bitmap loader
Files overviewCS2D overviewLua Scripts overview

English Bitmap loader >

15 comments3 kb, 508 Downloads

old Bitmap loader

Flacko
User Off Offline

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.
edited 1×, last 09.09.10 10:37:40 am
Approved by GeoB99

Download Download

3 kb, 508 Downloads

Comments

15 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

resullan
User Off Offline

Factis:Nice work...
minimujm twenteen charcters
Yes work

old

Avo
User Off Offline

Why so good script has got only 11 likes? It's really nice idea, good work and very usable, I like it!
I like it!

old

Infinite Rain
Reviewer Off Offline

Nice work...
minimujm twenteen charcters
I like it!

old

Andrez
User Off Offline

hola te vengo a poner 5 estrellas x el gay ese q te puso 1 sola
I like it!

old

tom282f3
User Off Offline

Awesome! Good for developers!

@Viper97:
If it's easy why don't you make one and upload it so we can see it?
I like it!

old

SANTER
User Off Offline

IMG:https://s30.ucoz.net/sm/2/cranky.gif
I like it!

old

kNedLiik
User Off Offline

This is epic!
AWESOME work
I like it!

old

Vectarrio
User Off Offline

Wow, finally found it! That's AWESOME! I'll use it for some serious script.
I like it!

old

Yasday
User Off Offline

wow this is good work flacko
I like it!

old

Cure Pikachu
User Off Offline

Nice converting a BMP image to text
Too bad I am not professional at developing and all that
I like it!

old

archmage
User Off Offline

Great job
-------------------
I like it!
edited 1×, last 11.06.11 07:57:25 pm

old

Flacko
User Off Offline

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.

old

Dead men
BANNED Off Offline

Bit map nice idea, Viper97 no easy to many peoples rating is 5+
I like it!

old

Time
User Off Offline

Just when I thought it was impossible, Flacko did eet. Sweet.
Too bad it's rather useless.
I like it!
To the start Previous 1 Next To the start