BLock Image Transfer - Involves copying one bitmap onto another using a raster operator.
Questions tagged [blit]
303 questions
6
votes
1 answer
Cut out circular image in canvas
I am useing html5 canvas, and I am creating a game were it is going to be possible to upload your face into the game, and use it as the main charactar. Unfortunately, the charactars in the game are circular, like smiley faces.
So how would this be…

MrJuavo
- 61
- 1
- 5
6
votes
1 answer
glBlitFramebuffer Invalid Operation
I've been messing around with framebuffers and render to texture and I came across the need to blit them. Again on some machines I get a GL_INVALID_OPERATION right after the glBlitFramebuffer call. Each texture bound to the framebuffer is setup the…

Invalid
- 1,870
- 1
- 16
- 22
5
votes
2 answers
Software Design and Development Major: Pygame Smudge Trails
First off, i have searched online and this website for solutions and the ones i have tried are not working so i decided to post my individual question and code. This program was created using Python 3.2.2 and the corresponding compatible version of…

AnjewGS
- 61
- 3
4
votes
2 answers
Can't draw() sprites in pyglet
For some reason, I can't get pyglet to draw sprites. Here's my code:
import pyglet
game = pyglet.window.Window(640, 480, "I'm a window")
batch = pyglet.graphics.Batch()
pyglet.resource.path = ["."]
pyglet.resource.reindex()
image =…

SnowFatal
- 2,431
- 1
- 15
- 12
4
votes
1 answer
How to animate Poly3DCollection using FuncAnimation with blit=True?
I'm trying to animate a rotating cube. For that I use Poly3DCollection and animate it using FuncAnimation:
anim = animation.FuncAnimation(fig, visualize_rotation, fargs=[collection],
init_func=partial(init_func, ax,…

fdermishin
- 3,519
- 3
- 24
- 45
4
votes
1 answer
Mask out white color from PNG or GIF image, blit it to canvas using any color
Source is either PNG or GIF where the pixels that should be "colorized" are white. Background can be either black or transparent, whichever is easiest.
Now I'd like to cut out a rectangular part of the source, and AND it with the palette color (gif)…

Henrik Erlandsson
- 3,797
- 5
- 43
- 63
4
votes
1 answer
How can I "blit" my Pygame game onto an OpenGL surface?
I built my entire game around Pygame and want to put it on Steam. I learned at the end that I would need OpenGL support to be able to run Steam's Overlay. The code to initialize the display:
screen = pygame.display.set_mode((screen_width,…

kennex
- 73
- 5
4
votes
1 answer
Pygame blit area parameter?
I am currently trying to blit a part of an already drawn image again. For this I read one can use the optional third area parameter when using blit. I do not know why but that parameter is acting weird for me.
From what I understand the area…

Julian
- 135
- 2
- 8
4
votes
1 answer
Can linear filtering be used for an FBO blit of an MSAA texture to non-MSAA texture?
I have two 2D textures. The first, an MSAA texture, uses a target of GL_TEXTURE_2D_MULTISAMPLE. The second, non MSAA texture, uses a target of GL_TEXTURE_2D.
According to OpenGL's spec on ARB_texture_multisample, only GL_NEAREST is a valid filtering…

zeboidlund
- 9,731
- 31
- 118
- 180
4
votes
1 answer
WebGL blit texture to canvas
What is the cleanest way of blitting a texture to the HTML canvas in WebGL. I could see setting up an orthographic projection and rendering a textured quad, but is there a cleaner way?

MelkorOJ
- 41
- 1
- 2
4
votes
4 answers
Fastest iPhone Blit Routine?
I have a UIView subclass onto which I need to blit a UIImage. There are several ways to skin this cat depending on which series of APIs you prefer to use, and I'm interested in the fastest. Would it be UIImage's drawAtPoint or drawRect? Or perhaps…

fbrereto
- 35,429
- 19
- 126
- 178
3
votes
1 answer
pygame graphics grid
Hello, I am new to Python and graphics programming in general. At present I am messing around with creating grids as practice, and I am having problems with getting pygame to put objects on top of the surface window.
Below is my code with comments.…

Daniel Wigmore
- 87
- 1
- 1
- 9
3
votes
1 answer
Resolving multisample array textures
I'm currently trying to implement cascaded multisampled variance shadow maps. While my non-multisampled maps appear to be working fine, I'm having issues with resolving the multisampled array textures. OpenGL docs say I should be using a…

Adam Leach
- 33
- 4
3
votes
0 answers
Stitch multiple pngs with Jimp
I need to stitch multiple pngs into a long png, and I believe I can use Jimp's blit method:
// blit the image with another Jimp image at x, y, optionally cropped.
image.blit( src, x, y, [srcx, srcy, srcw, srch] );
My question is, how do I loop…

pangpp
- 155
- 3
- 12
3
votes
0 answers
Is it possible to auto scale plot axis using Python matplotlib.animation.FuncAnimation() with blit=True?
I am trying to plot some receiving data from a sensor using matplotlib.animation.FuncAnimation(). In addition, I would like to use blit=True because as far as I know it makes the program more efficient (taking advantage of the already plotted values…

Sergio
- 68
- 5