" Curved Text & RLE vector routines (part 2)", by andy_a
|
This code snippet will run as is, but you'll need part 1 for creating and saving images in your own program. The new functions are:
makeData() - makes a text file of data statements that can be copy & pasted into your source code.
getImgData() - once you've pasted the data statements into your source, use this function to load into memory for further processing.
data2buffer() - like the above, but will re-create the image at 0, 90, 180, 270 degrees (user specified) in a Blitz image buffer. Use the Blitz image buffer just like you would use any loaded external image file.
dat2curv2buf() - reads the image in the data statements, wraps the image around a curve, and stores in a Blitz image buffer.
Simple usage demo included. |
| Code | | |