Projects tagged ‘bitmap’ and ‘utility’


Jump to tag:

Projects tagged ‘bitmap’ and ‘utility’

Filtered by Project Tags bitmap utility

Refine results Project Tags color (2) tools (1) conversion (1) imaging (1) string (1) preloader (1) font (1) load (1) python (1) draw (1) file (1) pixel (1)

[4 total ]

1 Users

Light-Weight Platform Independent Bitmap Image Reader Writer Library The library has the following capabilities:Read/Write 24-bit Bitmap Images Pixel, row or level level batch editing Color ... [More] conversions (RGB,YCbCr) in byte and floating values Highly optimized subsample and upsample (resizing) Various color maps (1000 levels - autumn, copper, gray, hot, hsv, jet, prism, vga, yarg) Texture generation (checkered pattern, plasma) Graphics drawing interface (line, line-segmentm rectangle, triangle, quadix, horizontal and vertical line-segments, ellipse, circle, plot pixel, pen width, pen color) PSNR and Image comparisons Compatible C++ CompilersGCC 4.0+ Intel C++ Compiler 9.0+ Microsoft Visual C++ 8.0+ Comeau C/C++ 4.1+ [Less]
Created 12 months ago.

0 Users

This project consists of two (2) files: a python script and an AS class file. You use the python script to create a new XML file describing all your external files (XML, bitmap, video, etc.) by ... [More] simply pointing it at the folder(s) containing those files. Run the python script from the command line (or from an Ant script -- example will be forthcoming soon). Example command line usage: python cachebuilder.py build/images build/xml This script will write out an XML file giving you all the information you need to preload all of these files with accurate information as to how far along you are -- in each folder you care about, if you choose to share that with the user! Download it here: http://flisp.googlecode.com/svn/trunk/cachebuilder.py ...and put it in your project's root folder, then open a terminal window and navigate to that same folder. Then invoke this script using "python cachebuilder.py" followed by the names of the folders you want it to scan for files. So, for example, with the command line: python cachebuilder.py build/jpeg build/swf it might generate a file like: python cachebuilder.py build and it would generate a preloadcache.xml file like this: Now the next step is to write an AS class that knows exactly how to parse this XML doc and sequentially load all the files while firing off a callback announcing (a) the name of the file you're currently loading, (b) the name of the folder you're currently loading, (b) the bytes you've already loaded of the current file, (c) the totalbytes of the current file, (d) the bytes you've loaded of the current folder, (e) the totalbytes of the current folder, (f) the bytes you've already loaded of the whole enchilada, and (g) the totalbytes of the whole enchilada. I'm thinking it'll just make a nice associative array with these properties defined in it, and pass that along to any function you designate as the onLoadProgress handler. so for the example right above, every time more data arrives as part of the load process, you'd fire off the equivalent of this: yourhandlerfunction( { currentfile: "build/jpeg/photo1.jpg", currentfolder: "build", filebytesloaded: 73, filebytesneeded:500, folderbytesloaded:73, folderbytesneeded:2000, totalbytesloaded:73, totalbytesneeded:2000} ); so then the handler could just reach into that object and get its info. For example: myhandlerfunction( info_object: Object ) { var ratio:Number = info_object[ "totalbytesloaded" ] / info_object[ "totalbytestotal" ] ; progressbar.xscale = ratio 100; } [Less]
Created 12 months ago.

0 Users

Various Delphi functions I developed years ago.
Created 12 months ago.

0 Users

The Bitmap Font Maker Utility for Game Studio Express programs with added features.
Created 10 months ago.