Main Menu

print problem

Started by basil99, April 12, 2013, 05:49:25 AM

Previous topic - Next topic

basil99

Hi!

By some reason this works ( i see the text output )


rendertoscreen
cls RGB( 0,0,0 )

setcursor 1,1
ink RGB( 255,255,255 )
print "Sample Text"

sync


but this code


rendertoimage sortofbigblankAFXimage
cls RGB( 0,0,0 )

setcursor 1,1
ink RGB( 255,255,255 )
print "Sample Text"

rendertoscreen
DrawImage sortofbigblankAFXimage, 0, 0, 0
sync


doesn't - no text output
Any chance to fix it ?

Thank you
Free Games Site - http://vespacrabro.com

kevin

#1
 The text ink colour has no Alpha channel.

so,

   ink RGB( 255,255,255 )


Should be,

   ink ARGB( 255,255,255,255 )


Since the in order to draw a GDI font (like the default font #1) to a FX/AFX surface, PB has to convert the font into CRF format.


basil99

Free Games Site - http://vespacrabro.com