Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I'm looking for PP256 source code.
#11
PUT format is simple. It's the same for QB and FB.

1. Take the width, multiply by 8. That's the first 2 bytes (a 16 bit integer).
2. The height is the next 2 bytes (again a 16 bit integer).
3. Pixel data follows. Width * height * BytePerPixel bytes of pixel data.
4. If it's for QB: check if the length is odd. If so, add another byte to make the length even.

That last step isn't needed for FB because you can use byte arrays, on the other hand I guess it's good to have things aligned properly.
Reply
#12
fbImage can perform operations with PUTs up to 8192x65536x32.

You can also simply BLOAD a BMP into memory as a PUT.
Reply
#13
Quote:fbImage can perform operations with PUTs up to 8192x65536x32.
Wow, that library is perfect for an image editor.
Reply
#14
I'm working on a PP256 replacement now (working title is "Pixel Plus eXtended", or PPX) which will work in any resolution and color depth supported by gfxlib and will be able to edit hi-color and true-color images in addition to 256-color images - when I have a working piece of code, I'll put it on the sourceforge CVS (project request is pending) and anyone who would like to help could let me know so I can add you to the developer list. (And I'll try to get something done in the near future, but don't expect miracles. Smile )
Reply
#15
Quote:
Neo Wrote:fbImage can perform operations with PUTs up to 8192x65536x32.
Wow, that library is perfect for an image editor.

Thanks Big Grin It's pretty big and extended, but i haven't released it publicly yet... (version number is still < 1.0, it's 0.92J.A). Do you think I should?

(btw, Option Explicit not supported Sad didn't know about that one till later)
Reply
#16
Quote:I don't understand.
Ever tried loading a bitmap before? From what I see above, PUT is far simpler. Just use OPEN, GET, CLOSE, etc to load the data into memory. :wink:
Reply
#17
Quote:Thanks Big Grin It's pretty big and extended, but i haven't released it publicly yet... (version number is still < 1.0, it's 0.92J.A). Do you think I should?
Sure, it looks ready to me.
Reply
#18
I'll check this fbImage. Thanx Neo.

Sebastian, I don't think I have it at myself. I'll try to scoop through my web and college account. Maybe it's there. If not, you'll have to wait 6 days.
Reply
#19
http://forum.qbasicnews.com/viewtopic.php?t=9371

I already tried it a while ago...zero responses
Reply
#20
Neo, on which way this lib helps ME? I mean, saving and manipulating with PUT files? This lib needs a better documentation. At this point it seems nothing more but an image editing program. And why I should use it instead of Paint Shop Pro?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)