![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
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 ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() |
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;
}
|
|
|
|
|
|
#2 |
![]() |
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] |
|
|
|
|
|
#3 |
![]() |
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;
}
|
|
|
|
![]() |
| Tags |
| bitmaps , problem |
| Thread Tools | |
|
|