cairo Questions
2
Solved
I am trying to create a simple drawing application using Python, GTK3 and cairo. The tool should have different brushes and some kind of a highlighter pen.
I figured I can use the alpha property o...
3
2
Solved
I need to draw a shape directly on screen (a little arrow) in X11, it serves as an overlay. I am searching for about an hour no with no good results. Could anyone provide me a good entry point for ...
1
Solved
I just installed cairosvg and it seems to have worked.
If i try to install again it says:
$ pip install cairosvg
Requirement already satisfied(...)
But if I try to import it in python3, it ...
Stealth asked 27/8, 2016 at 9:43
4
Solved
I am working with some R code that generates a number of images as png files; however, a Rplots.pdf file keeps on being generated in the working directory, is there a way to prevent this from happe...
2
Solved
I have a system that has only the freetype2 and cairo libraries available. What I want to achieve is:
getting the glyphs for a UTF-8 text
layouting the text, storing position information (by myse...
Bilski asked 18/4, 2016 at 15:13
1
Solved
I have a problem with displaying alpha transparency using GTK and Cairo. I try to display this image 1
If I do the alpha blending my self, everything works.
If I pass the alpha values directly...
1
Solved
I'm having trouble understanding how to simply rotate an image with pyCairo...
Here's what I did, based on this example :
image_surface = cairo.ImageSurface.create_from_png(image_path)
width = im...
1
Solved
I have recently downloaded and installed Cairo graphics library for C from the project website.
I tried to run the hello world program of Cairo by using the given code from the site FAQ. In Termin...
3
I am working on a headless ubuntu machine with most of the cairo requirements preinstalled, but I am stumbling on getting R to use Cairo. Does anyone know what flags or additional packages I need t...
Coumarin asked 21/5, 2013 at 20:28
1
Solved
I'm writing a Haskell program with click-and-drag functionality, so with each mouse movement event an update gets painted to the window. At the moment I'm using
renderWithDrawable myCanvas update...
3
Solved
I'm using cairo (http://cairographics.org) in combination with an OpenGL based 3D graphics library.
I'm currently using the 3D library on Windows, but I'm hoping to receive an answer that is platfo...
2
I have a code uses Cairo and Pango to create an image :
#include<stdio.h>
#include<cairo.h>
#include<pango/pangocairo.h>
#define IMAGE_WIDTH 650
#define IMAGE_HEIGHT 150
#defin...
1
Solved
In my application, I am using Pango and Cairo to create text textures. These textures have their width fixed, but should scale their height to fit text contents. The parent objects involved in this...
Dezhnev asked 3/8, 2015 at 13:26
0
I am trying to generate a diagram with embeded svg images.
If I run graphviz with the regular svg command, the images are only referenced.
dot -Tsvg diagram.dot -O
Here it says to build with -Ts...
1
Solved
I am trying to save a r plot with transparent background with png format. I have followed few recommended method in stackoverflow but every time I am still getting the white background. My test dat...
0
I'm trying to enhance the graphical look of my application by giving the drawing a subtle shadow effect. I'm using python and cairo drawing.
With the example code below I can draw an outer circle ...
1
Solved
Pango syntax supports some text only markup. As far as i can see this does not extend to embedding images as well.
Looking around I cannot find much in the way of an existing implementation, but i...
1
I've several lines of text and I'd like each to fit in width (scaling the font size) to the width of the Context. Is there a way of doing this?
I'm using pangocairo and python for this.
2
At the beginning of my Gtk-Gdk-Cairo-Pango app, I create the window:
GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
First, there is GtkWindow, but gtk_create_window returns GtkWidget, no...
Selfconsistent asked 16/12, 2014 at 22:22
5
I'm trying to get working canvas on node js. I'm using Windows Vista. After basic approach npm install canvas failed (see error below), I have looked up some tutorials, here is what I have tried:
...
Nereid asked 19/8, 2013 at 9:32
1
I have problem with special characters in my knitr document. Normal text works fine but the polish letters in the title or axis name on the picture doesn't.
I tried to fix this with installing c...
2
Solved
I need to take the output of a matplotlib plot and turn it into an SVG path that I can use on a laser cutter.
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(0,100,0.00001)
y = x*...
Jalousie asked 2/7, 2014 at 7:19
1
Solved
Rendering to an SDL_Surface is possible with Cairo, but my application uses SDL_Renderer and SDL_Texture to take advantage of 2D accelerated rendering.
I am currently creating an SDL_Surface and c...
2
I locally download the package and atempt to install it but I get this error:
R CMD INSTALL -l /usr/local/lib64/R/library Cairo_1.5-1.tar.gz
I get his error:
checking for PNG support in Cairo...
© 2022 - 2024 — McMap. All rights reserved.