Questions tagged [pixmap]
123 questions
0
votes
1 answer
Displaying a Pixmap on a Graphics View Widget Object in Qt
I am trying to display a pixmap on the Graphic View widget. I believe what it is missing is a way to actually link the QGraphicsScene "scene" to the widget I have on the form, seeing that you can create multiple Graphics View Objects there must be a…

CrippledTable
- 784
- 5
- 20
0
votes
0 answers
Pyqt qlabel updating a pixmap to slow
Basically I have a qlabel that I set an img.
self.QLabel.setPixMap(QtGui.QPixmap(image.jpg))
I enabled set mouse tracking and a mouse move event so I can get the coordinates of my mouse when I hover over the…

cjaxx
- 33
- 7
0
votes
0 answers
PyQt Pixmap scaling, keep resolution for later
I am creating a label with a pixmap in a cell of a QTableWidget, and I want to be able to "zoom" in and out of the table. I accomplish this by scaling the pixmap with .scaled(width, height) which works totally fine, however once the pixmap is scaled…

Spencer
- 1,931
- 1
- 21
- 44
0
votes
1 answer
Pixmaps and performance-LibGdx
In my game,I am planning to use Pixmap for drawing rectangle.Game logic is based on changing the size,angle,position etc of this rectangle object in a dynamic way.
Will Pixmap create any performance issues to the android game when I use it to…

Niranjana
- 514
- 5
- 23
0
votes
1 answer
Python PyQt5: Image doesn't load
I want to load an image If I click on a button but only a little tiny pixel of the image appears.
It looks like that:
class MyWindow(QWidget):
def __init__(self):
super().__init__()
self.resize(1000, 1000)
…

Ramón Wilhelm
- 967
- 2
- 18
- 39
0
votes
1 answer
What is the sufficient way of updating a pixmap dynamically?
Objectives
To make health-bar perform insanely faster while updating the bar width.
To maintain its quality while scaling (pixel to meter ratio).
Currently I am using libgdx Pixmap to create an health bar, but when I change the drawLine parameters…

ronscript
- 397
- 1
- 8
- 33
0
votes
1 answer
QT QGraphicsScene with QLabel and QPixmap
I have a QGraphicsView, in that I have a QGraphicsScene, in that I have a QLabel and I set a .png picture as QPixmap into the QLabel. The .png is set in background.qrc resource file.
My QLabel's size is 600x400. Without the pixmap it's okay, the…

Alex
- 39
- 1
- 8
0
votes
0 answers
libgdx custom file to pixmap/texture
I would like to write my own binary graphic format, but now I'm wondering how to set width and height to my pixmap and then set specific pixel to specific color. Does anyone know how to achieve this? I just want to write my own pixmap/texture loader…

Dragomirus
- 439
- 3
- 14
0
votes
1 answer
Problems with tryCatch()
I'm trying to built a script in R that looks like this:
randomlist <- list(x=ran1, y=ran2) #{x,y}
contour <- Conte(c(round(randomlist$x),round(randomlist$y)),img@grey)
#if Conte function returns me an error, then get new randomlist values
#Do until…

Biel Stela
- 15
- 3
0
votes
1 answer
Image for QPixmap can't be found
I want an image to be shown in the same window if I click on a button. But the image can't be found, no matter if it is in the same directory or I write down the whole path. I saw several ways to integrate a picture and thought this was the best…

GoYoshi
- 253
- 1
- 3
- 17
0
votes
1 answer
Libgdx images from pixmaps are drawn solid black
For startes, i know libgdx is primarily used for gaming. I have just found out about it and wanted to try to give it an extra other (possible) purpose, for example a simple photo frame. The below code is just a part of a proof of concept and when it…

John Sirach
- 11
- 1
- 3
0
votes
2 answers
How to get pixel color from a Pixmap
I can use XGetPixel() to get a pixel from an XImage. What do I use to get a pixel from a Pixmap?

Harvey
- 2,062
- 2
- 21
- 38
0
votes
0 answers
Open GL ES creating Off-screen
I am stuck with the following while creating OFF-SCREEN surface using OpenGL ES 2.0 :
1. How to create Off-Screen surface using eglCreatePixmapSurface()?
2. eglCreatePixmapSurface() API takes EGLNativePixmaptype as parameter, what is …

CoolToshi45
- 155
- 2
- 10
0
votes
1 answer
How can an image to be displayed on a qdialog?
Pls help on this code, cuz i don't really get the concept.
I start a dialog by clicking a button on a qwidget.
I also would like to display an image on the aforementiond qdialog by clicking on a different button (img_btn) on the dialog .
I have…

Qfwfq
- 185
- 1
- 7
0
votes
1 answer
Libgdx: Dynamically increasing size of Pixmap
I am new to Libgdx. I have a requirement where I have multiple balls in a game and I want to increase the ball diameter every time the user touches the ball. I used the method pixmap.drawCircle() to create the ball and every time a user touches the…

user3545885
- 1
- 3