English 中文(简体)
How to render a printable image from a SWF
原标题:

I m working on a project at the moment where the client uses an off-the-shelf Flash library to display data against a map. It s a SWF that we feed some XML data and it renders it in various ways, such as a map of the UK with each county represented with a different colour depending on the data we feed it.

As it s an off the shelf, we only have the SWF, no means to edit the Flash file.

We need to make the reports universally printable from the browser. The idea was to have a container SWF that used the BitmapData methods on it to effectively do a screengrab of what the map ("child") SWF is showing and render it in the page as the image generated for printing(i.e only showing the image in the print stylesheet).

The issue is that I believe this will give us a 72DPI image for printing, which will produce too-low-resolution image for printing.

I could use a solution that will give a decent resolution printout alongside the HTML in the rest of the document.

Any thoughts appreciated.

问题回答

It s possible to print very specific things in your flash movie and to change a wide range of settings for your print job. For example, you can specify vector or bitmap printing. There s a pretty detailed sub-system for printing and the best way to learn is probably from the Adobe AS3 documents. Check out Chapter 25 of this pdf.

http://www.google.com/url?sa=t&source=web&ct=res&cd=1&ved=0CAsQFjAA&url=http%3A%2F%2Flivedocs.adobe.com%2Fflex%2F3%2FprogAS_flex3.pdf&ei=Us0FS7z6G4zRngf1lr29Cw&usg=AFQjCNE270VxK-qUM32YFBUv5SVjx1_hSw&sig2=nBiI287pCxRnPd46YGD4uw

Good luck!





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签