|
PegX Utilities
PegX is delivered with a full set of utility programs useful for embedded developers. These utility programs allow you to generate and use your own fonts, convert and ROM several forms of bitmap images, and design and automatically generate the source code for your PegX windows and dialogs. FontCapturePegX supports two font formats. These include a custom 1-bit-per-pixel variable-width bitmapped font format and a scalable vector font format. A scalable vector font is provided with the library and included or removed based on compile-time configuration flags. The vector font supports any point size along with normal, bold and italic attributes. FontCapture is a PC executable program, written using PegX, that allows users to convert TrueType and BDF font files into the native bitmapped font format required internally by PegX. The output of FontCapture is a source file containing “C” style data arrays describing the captured font. These source files are then compiled and linked in with your application, allowing you to associate any number of custom fonts with any PegX control type that displays string data. The image below is a screen shot of the FontCapture utility program. ImageConvertImage Convert is a PC executable program, written using PegX, that converts .bmp, .gif, and .jpg images into a compressed format supported by the PegX bitmap functions. The output of PegX Image Convert is a ‘C’ source file that can then be compiled and linked in with your application. Image Convert will optionally compress the output bitmaps on an individual basis, allowing you to achieve the best mix of speed vs size. Image Convert also creates optimized palettes for
applications running in 4 or 8 bpp mode. The user can input any
combination of supported image files, and ImageConvert will perform
advanced quantization and color-reduction producing an optimal palette
or palettes corresponding to the input images. The output images
are then automatically re-encoded using the newly generated palette
information. Multiple palettes can be used in one application. ImageConvert
also supports dithering of pixel color data when reducing the color
depth of an input image to match the output display capabilities.
The image below is a screen shot of the ImageConvert utility program. |

