Dateien

> > CS2D > Lua Scripts > Bitmap loader
DateiübersichtCS2D-ÜbersichtLua Scripts-Übersicht

Englisch Bitmap loader >

15 Kommentare3 kb, 508 Downloads

alt 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.
1× editiert, zuletzt 09.09.10 10:37:40
Zugelassen von GeoB99

Download Download

3 kb, 508 Downloads

Kommentare

15 Kommentare
Zum Anfang Vorherige 1 Nächste Zum Anfang

Logge dich ein!

Du musst dich einloggen, um selber Kommentare verfassen zu können!Einloggen

alt

resullan
User Off Offline

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

alt

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!
Ich mag es!

alt

Infinite Rain
Reviewer Off Offline

Nice work...
minimujm twenteen charcters
Ich mag es!

alt

Andrez
User Off Offline

hola te vengo a poner 5 estrellas x el gay ese q te puso 1 sola
Ich mag es!

alt

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?
Ich mag es!

alt

SANTER
User Off Offline

IMG:https://s30.ucoz.net/sm/2/cranky.gif
Ich mag es!

alt

kNedLiik
User Off Offline

This is epic!
AWESOME work
Ich mag es!

alt

Vectarrio
User Off Offline

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

alt

Yasday
User Off Offline

wow this is good work flacko
Ich mag es!

alt

Cure Pikachu
User Off Offline

Nice converting a BMP image to text
Too bad I am not professional at developing and all that
Ich mag es!

alt

archmage
User Off Offline

Great job
-------------------
Ich mag es!
1× editiert, zuletzt 11.06.11 19:57:25

alt

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.

alt

Dead men
BANNED Off Offline

Bit map nice idea, Viper97 no easy to many peoples rating is 5+
Ich mag es!

alt

Time
User Off Offline

Just when I thought it was impossible, Flacko did eet. Sweet.
Too bad it's rather useless.
Ich mag es!
Zum Anfang Vorherige 1 Nächste Zum Anfang