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

Is there any way to build paths in Cairo by combining two paths together through Boolean operations such as Union, Difference, and Intersection? I'm working on a vector graphics application that us...
Lawrenson asked 9/5, 2009 at 16:59

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...
Peruse asked 9/2, 2011 at 11:47

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...
Borg asked 25/1, 2012 at 15:53

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 ...
Araceli asked 24/5, 2011 at 5:13

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...
Ichthyoid asked 22/8, 2011 at 10:0

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...
Pentagon asked 23/8, 2011 at 17:55

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 ...
Mcallister asked 29/7, 2011 at 0:8

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?
Limitation asked 16/9, 2011 at 17:12

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 ...
Gamali asked 23/8, 2011 at 18:39

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...
Z asked 31/7, 2011 at 10:46

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...
Shanks asked 18/5, 2011 at 18:15

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...
Illsuited asked 4/4, 2011 at 16:40

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...
Blanchette asked 3/2, 2011 at 16:53

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...
Expeller asked 17/6, 2010 at 18:15

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...
Twentyfour asked 31/1, 2010 at 17:4

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?
Witter asked 29/1, 2010 at 15:52

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 = ...
Reptile asked 6/6, 2009 at 13:28

© 2022 - 2024 — McMap. All rights reserved.