i try doing the following, for creating a pixelfont with variable colors: (my png-s are black on white ground, one for the outline of the font and one for filling)
The Problem is, i need the mFont as AnimImage but when I run it like this it only draws on the first frame. if i use for-next loops to draw each frame seperatly it gets really slow..
my questions:
can i convert an normal image to an animimage-strip?
are there possibilitys to work with animimage as normal images, ignoring frame-separation?
does anybody know a faster solution to solve this?
greetings
GrrBrr
P.S. Uh, Oh, sorry for my bad english...
Global FontA = LoadImage("font1.png",120,108 Global FontB = LoadImage("font2.png",120,108) Global xFontA = CreateImage(120,108) Global xFontB = CreateImage(120,108) Global mFont = CreateImage(12,12,90) MaskImage(xFontB,255,255,255) MaskImage(xFontA,255,255,255) Function ColorFont(c1%,c2%) SetBuffer ImageBuffer(xFontA) ClsColor GetR(c1%),GetG(c1%),GetB(c1%) Cls DrawImage FontA,0,0 SetBuffer ImageBuffer(xFontB) ClsColor GetR(c2%),GetG(c2%),GetB(c2%) Cls DrawImage FontB,0,0 SetBuffer ImageBuffer(mFont) DrawImage xFontA,0,0 DrawImage xFontB,0,0 SetBuffer(BackBuffer()) End Function
The Problem is, i need the mFont as AnimImage but when I run it like this it only draws on the first frame. if i use for-next loops to draw each frame seperatly it gets really slow..
my questions:
can i convert an normal image to an animimage-strip?
are there possibilitys to work with animimage as normal images, ignoring frame-separation?
does anybody know a faster solution to solve this?
greetings
GrrBrr
P.S. Uh, Oh, sorry for my bad english...