Questions tagged [pixmap]

123 questions
13
votes
2 answers

libgdx TextureRegion to Pixmap

How do I create Pixmap from TextureRegion or from Sprite? I need this in order to change color of some pixels and then create new Texture from Pixmap (during loading screen).
Mickey Tin
  • 3,408
  • 10
  • 42
  • 71
11
votes
1 answer

Producing eraser effects using libgdx and OpenGL ES

Please consider the following images for the illustration: Initially I fill the whole screen/stage with individual Images until the screen turns pink. Each blob of pink colour is an individual Image actor that I add to the stage. Now I want to…
Rafay
  • 6,108
  • 11
  • 51
  • 71
10
votes
3 answers

ValueError while trying to save a pixmap as a png file

How can I save a pixmap as a .png file? I do this: image = gtk.Image() image.set_from_pixmap(disp.pixmap, disp.mask) pixbf=image.get_pixbuf() pixbf.save('path.png') I get this error: pixbf=image.get_pixbuf() ValueError:…
Hesam
  • 105
  • 6
7
votes
2 answers

LibGDX can't load a specific image

I've loaded all of my images successfully in the past and I'm using OpenGL ES 2.0 so the images don't need to be powers of two (I have several loaded successfully that aren't). The code in question is this: Line 96: splashSheet = new…
Panini Raman
  • 491
  • 1
  • 5
  • 12
6
votes
1 answer

Vulkan and X11 Pixmap

I'm writing an X11 window manager with a Vulkan based compositor. I'm wondering if there's a way to efficiently load window pixmaps as textures. In OpenGL, one would directly use the EXT_texture_from_pixmap extension to bind the pixmap to a texture.…
jaelpark
  • 91
  • 1
  • 5
6
votes
1 answer

How can I create a pixmap based on a .png file?

I have some .png icons I want to use for window buttons in a custom theme I want to create For fluxbox. My operating system is Arch Linux. But, fluxbox works with pixmaps. Question: Is it possible to create pixmaps based on .png format files?
gabriel
  • 257
  • 2
  • 4
  • 12
6
votes
1 answer

libgdx- pixmap: can I somehow change the width of the line?

I want to draw a line and then generate a texture (with libgdx). I found out that creating a texture from circles, rectangles and lines is simple with pixmap. But I didn't find out how to set the linewidth of the drawn shape. Is there any…
IstaLibera
  • 580
  • 5
  • 22
5
votes
1 answer

Qt/PyQt(/Other?): How do I change specific colors in a pixmap?

How do I change specific colors in a pixmap? For example, I have a pixmap with white and black pixels, and I want to change all white pixels to blue, but leave the black ones alone. Or maybe change the black to white and the white to blue... [I am…
Jeff
  • 968
  • 1
  • 10
  • 25
5
votes
2 answers

How to extract the pixel data Use R's pixmap package?

How to extract the pixel data Use R's pixmap package? so I read the image file using: picture <- read.pnm("picture.pgm") picture Pixmap image Type : pixmapGrey Size : 749x745 Resolution : 1x1 Bounding box…
5
votes
1 answer

How to use shm pixmap with xcb?

I try to learn how to use shared memory pixmaps in the xcb library. Did any of you have experience with this and want to share example codes and/or information? This would be very helpful. Thanks
bakkaa
  • 673
  • 6
  • 25
5
votes
1 answer

Is it possible to use pixmaps on Android via Java API for GLES?

I'm trying to implement off-screen rendering with OpenGL ES on Android. My ultimate goal is to improve performance of texture mapping which I do in plain java and Bitmap/int[] APIs. I tried pbuffer approach, similar to the sample code from a…
CheatEx
  • 2,082
  • 2
  • 19
  • 28
4
votes
1 answer

libgdx create texture from overlay using pixmap

I am trying to create a method which returns a texture modified by an overlay using libgdx and PixMap. Assuming I have 2 images: A Base Image in FileHandle textureInput And an overlay image in FileHandle overLay It should produce this texture: So…
user2989675
  • 155
  • 11
4
votes
2 answers

LibGDX Texture to ByteBuffer

I am trying to convert a Texture to a Pixmap in LibGDX so I can get all of the pixel data into a ByteBuffer for some experiments, and from what I can tell, I should be able to do this by doing the following : Pixmap pixmap =…
Shamrock
  • 436
  • 1
  • 8
  • 17
4
votes
1 answer

LibGDX - Sprite to Pixmap

I am using LibGDX for a small app project, and I need to somehow take a series of sprites and place them (or their pixels rather) into a Pixmap. The basic idea is to take random sprites that are generated through various means while the app is…
Shamrock
  • 436
  • 1
  • 8
  • 17
3
votes
1 answer

What is the format of Xlib ZPixmap format

does anyone know what is XLib ZPixmap format for 32/24bit images/pixmaps. Is it RGB(A) or BGR(A), etc. or highly implementation dependent?
user283145
1
2 3
8 9