cairo Questions
1
Solved
I'm trying to write simple graphic editor using PyGObject and python 3.
I need to draw lines with different color and width using mouse. I found many examples like this but nothing more complex.
H...
Parkway asked 22/4, 2012 at 18:26
1
Solved
I'm performing a rotation of a 2d canvas which works pretty well on the desktop but there's one small issue in the mobile space. Here's a zoomed in screenshot:
The thumb image is rotated about 0...
Weinshienk asked 3/5, 2012 at 19:55
2
Solved
Configuring cairo-0.12.0...
setup.exe: The program pkg-config version >=0.9.0 is required but it could not
be found.
cabal: Error: some packages failed to install:
cairo-0.12.0 failed during the...
Pasteurize asked 17/3, 2011 at 8:57
2
2
I would like to save the looks of a GTK window, and all the buttons and other widgets it contains to a PNG or PDF file. Cairo supports drawing on such surfaces.
Could I somehow ask a GTK widget to...
1
Solved
I'm a little confused about the relationship of the libraries listed above, here are what I think:
Cairo is a 2D graphic library, and GTK+ uses it to render widgets. Cario is low-level.
Cogl is a...
1
I want to create a window using GTK 3 under linux (fedora 12) and draw on it a simple rectangle using cairo-gl backend, for this I want to create a cairo-gl surface. How can I do this, can anybody ...
1
Solved
Based on the question Create PDF with (resized) PNG images using Pycairo - rescaling Surface issue I have attempted to create code that rescales and places an image at a specific position, as shown...
1
I'm wondering how to draw directly on the root window in an X11 environment with Cairo (in C), in order to make widgets. I've copied some parts of the code of tint2, but it's quite enormous, and th...
3
I have some code that looks like this:
cairo_surface_t * surface = cairo_svg_surface_create("0.svg", 512, 512);
cairo_t * context = cairo_create(surface);
int * data = new int[512*512];
// fill ...
2
Solved
By this I mean, does Cairo draw lines, shapes and everything using opengl acelerated primitives or no? and if not, a library that does this?
1
Solved
I'm trying to distribute cairo (1.10.2) with my application. I can create the necessarily dylibs using Homebrew but they are dependent on versions of other dynamic libraries that aren't present in ...
4
Solved
I wrote an app that uses Cairo to draw things on screen (on a Gtk::DrawingArea, to be exact). It needs to redraw everything frequently. It turns out, that despite the draphics drawn are very simple...
3
i am trying to install pycairo 1.10.0 for use with my custom-build python 3.1. however,
sudo /flower/bin/easy_install-3.1 pycairo
fails with
XXX@XXXX:/adventures$ sudo /flower/bin/easy_install...
Ostrander asked 3/6, 2011 at 20:49
2
Solved
I have taken passing shots at learning Cairo in the past, but always moved on in favor of some other graphics library. My problem is that I can't find a good tutorial that gives me a simple display...
Antisthenes asked 7/4, 2011 at 4:25
2
I have a wx.ScrolledWindow where is drawn on using cairo. I have implemented a zoom-functionality which right now redraws the whole content.
But as there will be up to 200 curves to draw I should c...
1
Solved
I have an album title of some music band. I want to draw it with some mask which will round the corners of image.
So, I've prepared such mask in gimp:
I'm using white mask, but it's invisible at...
2
Solved
I've been trying really hard to create a window with no decoration and a transparent background using PyGTK. I would then draw the content of the window with Cairo. But I can't get it to work.
I'v...
4
Solved
I have code which generates a Cairo ImageSurface, and I expose it like so:
def preview(...):
surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, width, height)
...
cherrypy.response.headers['Cont...
1
Solved
Seems that pycairo was branched to py2cairo for 2.x versions back in May. There are no pip or easy_install installation options for py2cairo. I've grabbed the latest py2cairo tar, as well as the ca...
Boxberry asked 4/11, 2010 at 8:1
3
Solved
My program draws circles moving on the window. I think I must be missing some basic gtk/cairo concept because it seems to be running too slowly/stutteringly for what I am doing. Any ideas? Thanks f...
1
I'm trying to build OpenSceneGraph's pdf plugin on a win32 box. The plugin is using cmake's PKG_CHECK_MODULES macro to find cairo and poppler libraries. I don't know how to install these in such a ...
Pol asked 26/2, 2010 at 20:12
1
Solved
Is it possible to use a TTF font in R?
Is the cairo package intended for this task? How would a minimal example look like?
3
Solved
I have an image/pixbuf that I want to draw into a gtk.DrawingArea and refresh frequently, so the blitting operation has to be fast. Doing it the easy way:
def __init__(self):
self.drawing_area = ...
© 2022 - 2024 — McMap. All rights reserved.