Questions tagged [pixmap]
123 questions
2
votes
1 answer
Get Pixmap out of Xlib
I've been trying to find a way of grabbing video directly from an X window and got pointed to Xlib and the compositing extension.
So far, I've been able to listen to change events and grab a Pixmap with this code:
#include
#include…

peacememories
- 123
- 1
- 5
1
vote
1 answer
WPF C#: load a pixmap data block into an Image control
I have an image in the form of a byte array of a certain size. It is not important to know where it comes from.
It has some further parameters: w,h,dn. I do not use dn (can get it if needed however) but color which was calculated this way
if…

P5music
- 3,197
- 2
- 32
- 81
1
vote
1 answer
How to find the bounding rectangle(s) of a given color, within a pixmap in Libgdx or Java
I've been trying to find the bounding rectangle(s) of a given color, within a pixmap using libgdx. I've found this answer https://stackoverflow.com/a/62911971/14895996 from a thread How to find the bounding rectangle(s) of a given color, withing a…

WASD123
- 15
- 1
- 9
1
vote
1 answer
How to install 'rtiff' package in R 4.0.3 for cell counting script
I'm using a beginner's manual (https://apps.dtic.mil/dtic/tr/fulltext/u2/1079243.pdf) in order to count cells from a microscope image using Rstudio. After installing the BiocManager and EBImage package, the manual…

Jesus ML
- 11
- 1
1
vote
2 answers
Qt: Rotating a label with a Pixmap on it
I have a label with a pixmap on it
Code looks like this:
Label = new QLabel (dialog, Qt::Widget);
Label -> setGeometry( xPosition, yPosition, 25, 87 );
QPixmap…

CeeAre
- 11
- 2
1
vote
1 answer
Python - PyQT - How to detect mouse events when clicking text/points in a pixmap
Suppose I have drawn simple text (say just the letter 'x') with some font parameters (like size 20 font, etc.) onto an (x,y) location in a QLabel that holds a QPixmap. What are the relevant methods that I will need to override in order to detect a…

ely
- 74,674
- 34
- 147
- 228
1
vote
1 answer
LibGDX - Sprite / Pixmap / Camera / ViewPort sizes (width/height ) - algorithm of all size transformations from PixMap to (physical device) Screen
What is my complete thinking algorithm to understand all possible width/height transformations on the path PixMap -> (physical) Screen/monitor?
Sorry for the stupid question, but how do these sizes corellate / scale / interact?
What size do I…

Code Complete
- 3,146
- 1
- 15
- 38
1
vote
1 answer
How to get int values for each pixel from a pixmap in libgdx
I'm trying to open a PNG file and display the value of each pixel.
Pixmap pixmap = new Pixmap(new FileHandle("images/Laby0.png"));
int widthPixmap = pixmap.getWidth();
int heightPixmap = pixmap.getHeight();
for(int y=0; y < heightPixmap; y++){
…

Jonath P
- 519
- 5
- 16
1
vote
1 answer
How to copy a GdkPixbuf with a transparent background over another GdkPixbuf
While using GDK in C/C++, I try to copy a GdkPixbuf with a transparent background over another GdkPixbuf, gdk_pixbuf_copy_area() says:
(scrol:6227): GdkPixbuf-CRITICAL **: 10:41:37.084: gdk_pixbuf_copy_area: assertion '!(gdk_pixbuf_get_has_alpha…

dave
- 11
- 1
1
vote
1 answer
Is there a way for xcb to load a file into a pixmap?
I'm writing an application with rust-xcb. However, when I try to load a file into a pixmap I cannot find any way to do it. I also use image library to load image files (jpg).
But I am not familiar with xcb, is there a way for xcb to load pixel…

YangKeao
- 184
- 6
1
vote
1 answer
Libgdx painting game logic
i'm learning libgdx in purpose of building a realtime multiplayer painting game. Game will last in 120 second and 4 people with 4 different colors will race to paint more portion of the screen.
Now i'm trying to implement circular painting as…

Ferit Özcan
- 31
- 1
- 10
1
vote
1 answer
Gtk-Gdk Pixmap in Pygobject python
I'm porting a code from PyGtk to PyGI(PyGObject). There is my code:
import gi
gi.require_version('Gtk','2.0')
from gi.repository import Gtk, Gdk, GObject
w, h = 100,100
# pixmap = gtk.gdk.Pixmap(None, w, h, 1)
pixmap = Gdk.Pixmap(None, w, h, 1) # I…

amirmahdi nezhadshamsi
- 108
- 8
1
vote
0 answers
legend3d failed in RGL : "Pixmap load: file format unsupported"
I’m using rgl package to draw a 3D scatterplot in R. Everything is working fine, except the legend that does not appear on the 3D plot, and I have this warning:
Warning messages:
1: In rgl.material(color = color, back = back, ...) :
RGL: Pixmap…

Josephine Tidiane
- 19
- 5
1
vote
0 answers
how do i change the size of a picture using the mouse on pyqt4
how do i change the size of a picture using the mouse button like we do in Microsoft Word or Adobe Photoshop ?
this is my code
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName(_fromUtf8("Form"))
Form.resize(923, 655)
…

popori popori
- 11
- 2
1
vote
2 answers
Native Activity, GLES2.0: Uploading pixel array to screen
I created a pixmap using, for example, this code
//...
// Native Activity
#define HEIGHT 600
#define WIDTH 600
uint32_t texDat[WIDTH*HEIGHT*4];
static double it = 0;
uint8_t color = sin(it)*256;
for (int i = 0; i < WIDTH; i++) for (int j = 0; j <…

Twaik Yont
- 102
- 10