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 » Developing U++ » UppHub » Cairo
Re: Cairo [message #19713 is a reply to message #19710] Tue, 06 January 2009 23:23 Go to previous messageGo to previous message
kodos is currently offline  kodos
Messages: 111
Registered: March 2008
Experienced Member
luzr wrote on Tue, 06 January 2009 20:32


What we REALLY need is to draw to ImageBuffer. And provide meaningful way how to store such drawing and how to print it (like DrawingDraw).

This really is multitarget effort - and one important target is to support drawing in non-GUI apps (think webservers).

Once you have rendered raster in ImageBuffer, providing Ctrl is trivial.

Mirek



The Linux control is actually just a wrapper around my cairo class which renders to an image buffer and after that the image buffer is rendered to a control. I think cairo also supports printing, but never tested that one Wink .

This are the 4 methods that are currently implemented to set/create a cairo surface:
void SetSurface(cairo_surface_t *surface, int width, int height);
void SetSurface(ImageBuffer &img);
void CreateSvgSurface(String const &filename, double widthInPoints = 595, double heightInPoints = 841); 
void CreatePdfSurface(String const &filename, double widthInPoints = 595, double heightInPoints = 841);
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: DirectoryCreateMulti as an alternative for RealizeDirectory
Next Topic: TabBar. Uninitialized member
Goto Forum:
  


Current Time: Thu May 23 10:03:30 CEST 2024

Total time taken to generate the page: 0.02080 seconds