Hi!
I use this piece of code to read all image files in a loop.
Resize them down to ICONSIZE and create a iconstrip out of them all.
1.
Can I manipulate the shrinked pixmap?
I'd like to add a black 1 pixel border to the resized images. before I paste them to the imagestip itself.
In BP I simply would use the imagebuffer and draw the black border lines onto it. But with bmx and pixmaps I have no idea.
2.
Can this whole process be done faster. I don't need the globalpixmap or the other media in memory for later use.
The Iconsize is I use currently is 96 x 96 pixels.
The whole strip is 12.576+ x 96 pixels large!
I use this piece of code to read all image files in a loop.
Resize them down to ICONSIZE and create a iconstrip out of them all.
1.
Can I manipulate the shrinked pixmap?
I'd like to add a black 1 pixel border to the resized images. before I paste them to the imagestip itself.
In BP I simply would use the imagebuffer and draw the black border lines onto it. But with bmx and pixmaps I have no idea.
2.
Can this whole process be done faster. I don't need the globalpixmap or the other media in memory for later use.
The Iconsize is I use currently is 96 x 96 pixels.
The whole strip is 12.576+ x 96 pixels large!
Global Fullpixmap:TPixmap=CreatePixmap(((MAXFOLGEN)*ICONSIZE),ICONSIZE,PF_BGR888,1) For Local i=0 To MAXFOLGEN-1 Local tmppixmap:TPixMap=LoadPixmap("media/"+i+".jpg") ' Load media files fullpixmap.paste(ResizePixmap(tmppixmap,ICONSIZE,ICONSIZE),i*ICONSIZE,0) 'and paste them to the global pixmap Next ' Output SavePixmapPNG(fullpixmap, "stripimg.png",9 )