Home » Developing U++ » UppHub » Cairo
Re: Cairo [message #19713 is a reply to message #19710] |
Tue, 06 January 2009 23:23   |
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 .
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);
|
|
|
 |
|
Cairo
By: kodos on Tue, 06 January 2009 15:37
|
 |
|
Re: Cairo
By: mirek on Tue, 06 January 2009 20:32
|
 |
|
Re: Cairo
By: mirek on Tue, 06 January 2009 20:45
|
 |
|
Re: Cairo
By: kodos on Tue, 06 January 2009 23:23
|
 |
|
Re: Cairo
By: mirek on Wed, 07 January 2009 08:14
|
 |
|
Re: Cairo
By: kodos on Wed, 07 January 2009 09:14
|
 |
|
Re: Cairo
By: mirek on Wed, 07 January 2009 11:36
|
 |
|
Re: Cairo
By: mirek on Wed, 07 January 2009 11:38
|
 |
|
Re: Cairo
By: mirek on Wed, 07 January 2009 11:38
|
 |
|
Re: Cairo
By: kodos on Wed, 07 January 2009 12:06
|
 |
|
Re: Cairo
By: mirek on Wed, 07 January 2009 12:30
|
 |
|
Re: Cairo
By: kodos on Wed, 07 January 2009 12:44
|
 |
|
Re: Cairo
By: kodos on Tue, 13 January 2009 15:38
|
 |
|
Re: Cairo
By: mirek on Tue, 13 January 2009 17:53
|
 |
|
Re: Cairo
By: mirek on Tue, 13 January 2009 17:55
|
 |
|
Re: Cairo
By: kodos on Tue, 13 January 2009 18:04
|
 |
|
Re: Cairo
By: mirek on Tue, 13 January 2009 18:55
|
 |
|
Re: Cairo
By: kodos on Tue, 13 January 2009 20:18
|
 |
|
Re: Cairo
By: mirek on Tue, 13 January 2009 22:54
|
Goto Forum:
Current Time: Sat May 03 23:48:16 CEST 2025
Total time taken to generate the page: 0.03152 seconds
|