QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Problem with bitmaps

This is a discussion on Problem with bitmaps within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; I have tried using both the bitmap converter ConvImage16.exe and the JPG converter at http://www.psp.to/tools/ to create an array to ...

Reply
 
LinkBack Thread Tools
Old 08-07-2005, 06:45 PM   #1
 
Join Date: Jul 2005
Location: Michigan
Posts: 104
Trader Feedback: 0
Default Problem with bitmaps

I have tried using both the bitmap converter ConvImage16.exe and the JPG converter at http://www.psp.to/tools/ to create an array to use with pgBitBlt. The image is black and white; however, no matter which converter I use, the parts that should be white are pink, and the rest are various colors, none of which are black. Additionally, the image appears a second time a couple hundred pixels to the right (not sure of the exact number) and it is smaller than what I specified (in this case, it should be 100x100, but is probably about 40x40). I am using the PSP Toolchain with Cygwin. Does anyone know what the problem might be?

Code:
int main() {
    pspDebugScreenInit();
    SetupCallbacks();
    pgBitBlt(0,25,100,100,1,img_calendar);
    sceKernelSleepThread();
    return 0;
}
darkshadow88 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-07-2005, 07:24 PM   #2
 
framerate's Avatar
 
Join Date: Aug 2005
Location: Indiana
Posts: 389
Trader Feedback: 0
Default

I was having the same problem trying to do a full screen background...

I used this line from another code I found...

pgBitBlt((480-gfxconv_width)/2,(272-gfxconv_high)/2,gfxconv_width,gfxconv_h igh,1,gfxconv_img);

Fixed the problem for me.., so perhaps you can adapt it a little bit to figure out the issue for you.
__________________
[URL=http://www.framerate.info/psp][IMG]http://www.framerate.info/_hosted/imageupload/signature.gif[/IMG][/URL]
framerate is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-07-2005, 07:47 PM   #3
 
Join Date: Jul 2005
Location: Michigan
Posts: 104
Trader Feedback: 0
Default

I managed to fix the problem:

Code:
 
int main() {
    pspDebugScreenInit();
    SetupCallbacks();
    pgInit();
    pgScreenFrame(2,0);
    pgBitBlt(0,25,100,100,1,img_calendar);
    pgScreenFlipV();
    sceKernelSleepThread();
    return 0;
}
darkshadow88 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
bitmaps , problem

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 09:23 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us