Welcome to Hacking the PSP
Sign in
|
Join
|
Faq
Hacking the PSP
Sony PSP Discussion, Blogs, Hacks and More
Forums
Blogs
Home
PSP Software Development
Started by Auri at 03-28-2006 10:20 PM. Topic has 0 replies.
Hacking the PSP
»
Hombrew Softwar...
»
PSP Software De...
»
LUA BMPlib for PSP - Bitmap Handling Library for PSP Lua Development
Search
Sort Posts:
Oldest to newest
Newest to oldest
03-28-2006, 10:20 PM
Auri
Joined on 12-07-2005
Indianapolis, Indiana
Posts 3,679
LUA BMPlib for PSP - Bitmap Handling Library for PSP Lua Development
Attachment:
bmplib.zip
Youresam has released LUA BMPlib for PSP. This is a library for helping Lua script coders to load and use BMP images in their Lua programs with a simple line of code. Currently this version is not optimized, and can be slow. Youresam is trying to optimize this library for a better performance.
About:
* BMPlib allows you to open bmp images in lua
How-to:
Simply copy "bmplib.lua" into your programs folder and put dofile("bmplib.lua") in your program.
I have attached a sample BMP along with a sample program. To run the sample, place this folder in your LuaPlayer/Applications folder.
2.00+ USERS: This is like a normal LuaPlayer app and should work like all luaplayer apps do.
Functions:
Image.bmpload(filename)
Opens the 24-bit BMP file and returns it as an image
Bugs:
It takes luaplayer a long time to draw an image pixel by pixel, so loading bitmaps takes some time.
To-Do:
* Bitmap saving once I learn how to save binary files in lua
* All bitmap bit support (1,4,8,16)
* Optimization: If a row of pixels are the same color, draw all at once instead of individually to save time
Author:
This program was created by "youresam". If you need to contact me, my AIM is youresam1. You may modify the source of bmplib, but I will warn you it is tricky. There is padding in certain places based on certain numbers, instead of RGB its GBR, and the pixels are upside down.
---
Author, Hacking the PSP
www.hackingpsp.com
Report
Hacking the PSP
»
Hombrew Softwar...
»
PSP Software De...
»
LUA BMPlib for PSP - Bitmap Handling Library for PSP Lua Development
(please select)
Forums Home
|- Search Forums
|- Active Topics
|- Unanswered Posts
User Options
|- Sign In
|- Join this community
|- Forgot Password
Forums
|- General Discussion
|- PSP Hardware Hacks
|- PSP Software Hacks
|- PSP Firmware Hacks
|- PSP Games
|- Homebrew Software
|- PSP Magazines
|- Hacking the PSP: First Edition Book Discussion
|- Hacking the PSP Book Addendums
|- Hacking the PSP: Second Edition Discussion
|- Hacking the PSP: Second Edition Addendums
Hombrew Software Libraries
|- Games
|- Applications
|- Flash Games and Applications
|- Utilities
|- Demos
|- Emulators
|- Game Saves and Cheats
|- Trailers
|- Movies
|- Firmware Hacks and Launchers
|- PSP Software Development
|- Game Add-Ons
|- PSP Magazines
|- Shells and Operating Systems
|- Web Browser Portals
|- Educational
|- Miscellaneous
Copyright (c) 2005-2008 Auri Rahimzadeh