Jump to content




Bitmap (.BMP) API

api utility

  • You cannot reply to this topic
12 replies to this topic

#1 KevinW1998

  • Members
  • 93 posts
  • LocationAustria(German)

Posted 24 January 2014 - 03:28 PM

So with the permission of mads I expanded his Bitmap Loader to a whole API. With this API you can make a Bitmap-Api-Object and load from or save to a bitmap file or paint file.

Every Bitmap file MUST BE:
* 24-Bit
* Uncompressed

Code:
Spoiler

Documentry:
Spoiler

Simple Example:
Spoiler

pastebin get 2DavwMVN BMPDll

I hope you enjoy this API guys! I am happy with every feedback I get!

EDIT: Dammit.... wanted to post it in APIs and Utilities

Edited by KevinW1998, 24 January 2014 - 03:51 PM.


#2 Csstform

  • Members
  • 410 posts
  • LocationU.S.A.

Posted 24 January 2014 - 03:39 PM

I would suggest a pastebin link. Looks interesting!

#3 KevinW1998

  • Members
  • 93 posts
  • LocationAustria(German)

Posted 24 January 2014 - 03:48 PM

Yea, I could do that

#4 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 24 January 2014 - 06:35 PM

Does this actually use the real BMP format, or is it just named after it?

#5 KevinW1998

  • Members
  • 93 posts
  • LocationAustria(German)

Posted 25 January 2014 - 01:20 AM

Of course real Bitmap Files. You can try it out ;)

#6 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 25 January 2014 - 02:24 AM

View PostKevinW1998, on 25 January 2014 - 01:20 AM, said:

Of course real Bitmap Files. You can try it out ;)
Awesome! You'd be surprised at the amount of image readers etc which just use a format that is inspired by the real thing though.

#7 KevinW1998

  • Members
  • 93 posts
  • LocationAustria(German)

Posted 25 January 2014 - 03:35 AM

View Postoeed, on 25 January 2014 - 02:24 AM, said:

Awesome! You'd be surprised at the amount of image readers etc which just use a format that is inspired by the real thing though.

heh :D

#8 Symmetryc

  • Members
  • 434 posts

Posted 26 January 2014 - 12:14 AM

Hmm, the colors are slightly off (CC's colors changed since Mads made his), but other than that looks great :D

Edited by Symmetryc, 26 January 2014 - 12:15 AM.


#9 KevinW1998

  • Members
  • 93 posts
  • LocationAustria(German)

Posted 26 January 2014 - 02:25 AM

View PostSymmetryc, on 26 January 2014 - 12:14 AM, said:

Hmm, the colors are slightly off (CC's colors changed since Mads made his), but other than that looks great :D/>
I did change the colors. I made a screenshot of all the cc-colors and used the color picking tool from photoshop to get the RGB-value . Anyway... good to see that you enjoy my API ;)

#10 Symmetryc

  • Members
  • 434 posts

Posted 26 January 2014 - 08:13 AM

Hmmm, BIT sent me a hex listing of the colors a little while ago that he got from the the code of CC itself I believe and it's slightly different...

#11 KevinW1998

  • Members
  • 93 posts
  • LocationAustria(German)

Posted 26 January 2014 - 09:14 AM

View PostSymmetryc, on 26 January 2014 - 08:13 AM, said:

Hmmm, BIT sent me a hex listing of the colors a little while ago that he got from the the code of CC itself I believe and it's slightly different...
Well anyone can change the color-code in the first 16 lines of the source code, until I made a API for it. If you want you can send me the color-table and I would change it.

#12 Symmetryc

  • Members
  • 434 posts

Posted 26 January 2014 - 10:16 AM

http://pastebin.com/WP4WzQjy

Replying on mobile, hopefully it works...

#13 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 26 January 2014 - 10:19 AM

View PostSymmetryc, on 26 January 2014 - 10:16 AM, said:

http://pastebin.com/WP4WzQjy
Replying on mobile, hopefully it works...
looks about right...





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users