Questions tagged [pixmap]
123 questions
0
votes
1 answer
How to load a 32-bit RGB string with a given width and height into a Pixmap in Xlib?
I want to load an int string, which consists of width × height elements, which represents a 32-bit RGB value into a Pixmap in Xlib.
I've just found XReadBitmapFile(), which can read from a X Bitmap to X Pixmap, and this might not really meets my…

Kevin Dong
- 5,001
- 9
- 29
- 62
0
votes
1 answer
Computer Graphics and pixmap
I have a question:
Assuming transfer rate of 0.1mb/sec how much time would be necessary to load pixmaps with resolution of 512x512.
Any help will be appriciated

Bushra
- 21
- 7
0
votes
3 answers
Using Eclipse and libgdx, it cant 'find' and 'load' my png image
i am new to computer programming, and i am following a Android Game Development. I'm on Tutorial Android Game Development in Java - Part 3: Processing Input, and in the first five minutes he has you put a png file into the assets/data folder in the…

Noob2Coding
- 3
- 2
0
votes
1 answer
Create a clickable QTextEdit with a pixmap in a label as background
I need my QTextEdit (or correct: QTextBrowser) to have a background image.
self.background=QLabel()
self.background.move(0,0)
self.background.setPixmap(QPixmap("/Icons/bg-text.png"))
self.background.show()
self.textedit =…

user2366975
- 4,350
- 9
- 47
- 87
0
votes
1 answer
Converting PIL image to GTK pixmap with alpha
So I need to take an image I made in PIL and convert it to a pixmap to be displayed in a drawable.
How do I convert from PIL to pixmap and keep the images alpha?
Currently I have this code written:
def gfx_draw_tem2(self, r, x, y):
#im =…

still learning
- 157
- 2
- 14
0
votes
1 answer
GTK drawable area transparent background color
I have a GTK drawing area and I want to have an image display as the background for it, while other things can be drawn over it.
My first attempt at this involved me simply taking the image, putting it into a pixmap, and drawing it before I draw…

user2327814
- 523
- 3
- 8
- 18
0
votes
1 answer
How to draw a roads (lines) on pixmap
I really got stuck with drawing "roads" on Pixmap in Qt.
I have all coordinates in fractional value which are very close to each other (I've got them from converting longitude/latitude to X/Y coordinates using Mercator's formulas). Qt drawLine…

tema
- 1,115
- 14
- 33
0
votes
1 answer
Changing the colour of a pixmap
I have a pixmap as a simple two dimensional array of pixels I rendered using FreeType (or read using libpng in some cases).
Is there any simple algorithm that allows me to tint this pixel data in a colour of my choosing? I just need to change the…

futlib
- 8,258
- 13
- 40
- 55
0
votes
1 answer
Cairo / GTK example code crashes when window is too big or maximized
I have copied and compiled the source code available in the section titled "Full Source".
http://cairographics.org/threaded_animation_with_cairo/
I adapted this code to a project that I'm working on only to find that the app would crash when I made…

user1890673
- 41
- 5
0
votes
1 answer
texture is null while creating this from a Pixmap object in thread
try {
URL url = new URL(this.url);
InputStream in = new BufferedInputStream(url.openStream());
ByteArrayOutputStream out = new ByteArrayOutputStream();
byte[] buf = new byte[1024];
int n = 0;
while (-1…

Mikle Pankratov
- 11
- 2
0
votes
2 answers
qt, draw center of pixmap at a point, instead of top-left-corner of pixmap at a point
Like the title says, I'm drawing a pixmap onto a scene at a specific location. QT draws the pixmap by placing the top left corner of the pixmap at the point I specify. However, I want the center of the pixmap to be placed at this point instead.…

user446836
- 733
- 4
- 16
- 24
0
votes
2 answers
drawBitmap nullpointerexception
I'm experiencing a nullpointerexception in my android java code in the following code. This is inside AndroidGraphics.java.
public void drawPixmap(Pixmap pixmap, int x, int y) {
canvas.drawBitmap(((AndroidPixmap)pixmap).bitmap, x, y,…

user1570204
- 1
- 1
0
votes
1 answer
Drawing a pixmap using QPainter::drawPixmap in qt
I am able to paint a pixmap by using QPainter::drawPixmap, but I am having trouble with the sizing. The pixmap is being drawn onto many different scenes. Some of the scenes are very large, and some are very small. This results in the pixmap drawn…

user446836
- 733
- 4
- 16
- 24
0
votes
1 answer
qt delay on off pixmap
Hy Qt master..
I wanna make my label (pixmap) on off on off on and soon, how can i do that??
i have try use this code :
Sleeper::sleep(2);
ui->label->setPixmap(QPixmap("C:/Users/EVAN/Pictures/New folder/85.png"));
Sleeper::sleep(2);
…

Majapahit
- 31
- 5
-1
votes
1 answer
LibGDX pixmap methods does not exist
I am using LibGDX to create a game. I am using Pixmap and I want to use its method .setColor. But its not working. The IDE shows that no instance found of 'setColor()' whereas when I saw the official documentation of LibGDX, it shows that Pixmap has…

Sarangi Patel
- 1
- 1