It create's a BitmapTypeV3 Bitmap and set's the double-Density-Flag in
it.
That's the Code:
Err pnoJpeg2Bmp2DoubleDensity(UInt16 refNum, BitmapPtr inBmp,
BitmapPtrV3 *outBmp)
{
#pragma unused(refNum)
BitmapPtrV3 bmp3;
bmp3 = BmpCreateBitmapV3(inBmp, kDensityDouble, BmpGetBits(inBmp),
NULL);
if(outBmp) *outBmp = bmp3;
return(errNone);
}
John Voltz wrote:
Ok, I have narrowed down where the problem really is. Apparently nothing is
being returned in bmpV3, preventing the image from displaying in the
following IF statement. If I remove the IF statement, the graphic will
display. What does pnoJpeg2Bmp2DoubleDensity do? I couldn't find it in the
docs.
err = pnoJpeg2Bmp2DoubleDensity(pnoJpegRefNum, bmp, &bmpV3);
if (err != errNone) {
ErrAlert(err);
return(err);
}
if (bmpV3) {
WinDrawBitmap((BitmapPtr)bmpV3, 0, 15);
BmpDelete((BitmapPtr)bmpV3);
}
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/