Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Archive » DrawData and StoreImageAsString, how?
Re: DrawData and StoreImageAsString, how? [message #3670 is a reply to message #3668] Mon, 12 June 2006 15:18 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
fudadmin wrote on Mon, 12 June 2006 07:17

luzr wrote on Mon, 12 June 2006 10:59



You can make it work by registering specific format for it (just like we will be registering AGG format).

Mirek


Why to register new format if I'm using upp native RGBA?
Edit:
P.S. What formats are "image" and "image-data"?


OK, I owe you an extensive explanation I guess...

This is not about pixel format. This is more about rendering a complex data - those data can be anything, not only the array of pixels. The only specific is that the intemmediate "result" of drawing operation, as defined by DataDrawer, must be the Image band (as required by "Render" method).

There is no "image" format, only "image-data" (AFAIK Smile. This "image-data" is encoded image - it can be in any "file-format" currently supported by any plugin, e.g. BMP or PNG or JPG.

Now the advantage here is that this way, when creating a Drawing (e.g. Report), you can store the raster data in original, often compressed, form. This can be quite significant advantage as it can save tens of MBs in Drawing. And, as I have mentioned before, drawing to printer can and is optimized so that it works by bands and optimizes output by "RLE" - detecting significant areas of uniform colors and printing them using simple DrawRect. I believe that such areas are quite common in non-photo printouts.

Frankly, I have added this interface when dealing with one of my apps that stores and prints scanned documents. Then I have realized that this is the ideal tool to cope with sw renderers as well.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Agg works with upp Ctrl's! - download and test the new package...
Next Topic: merged in yet
Goto Forum:
  


Current Time: Tue Apr 23 09:39:29 CEST 2024

Total time taken to generate the page: 0.01436 seconds