BLock Image Transfer - Involves copying one bitmap onto another using a raster operator.
Questions tagged [blit]
303 questions
1
vote
1 answer
Matplotlib: Figure title does not update?
I need to make a plot and update it many times (100's or 1000's) so I need Python to update it very quickly. I found a wonderful solution but I am not allowed to add a comment.
Here is the code of the referred answer:
import time
import numpy as…

terauser
- 53
- 5
1
vote
0 answers
How to update/blit plot in same figure? (Matplotlib)
I am trying to plot data to the same figure every 10 seconds, but after every iteration a new figure gets displayed.
How can I update the plot in the same figure?
Is this the most efficient way to do so? I need to handle far more data in the future…

T-Dog
- 135
- 8
1
vote
2 answers
Blit function not working for displaying an image
I've currently been following along with a video over pygame and creating a space invaders type of game that I will modify for my own implementation of the game. However I've gotten to the section where you have to use the blit function in order to…

cody neal
- 11
- 2
1
vote
1 answer
In Pygame, can you draw many sprites to the screen each loop without significant delay?
In my map editing program, I have 3 key features.
Adding sprites
Removing sprites
Currently selected sprite follows the mouse
Issue I'm having is that I use a loop that iterates through all of the "added sprites" and draws them to the screen. The…

Ray Heredia
- 15
- 3
1
vote
1 answer
I can't use the blit method in pygame
I'm following a tutorial on youtube for building a platformer with pygame.
I'm getting the error: Traceback(most recent call last):
File I:\Home\PYGAME\main.py line 23 in
screen.blit(player_image, player_Pos)
AttributeError: 'NoneType' Object has…

Haajar
- 13
- 2
1
vote
2 answers
The image drawn in pygame does not match the location it is given
Hello everyone I am learning the basics of pygame.
I recently ran into a problem;
I decided to load an image and gave it a random location well within the pygame window.But the problem was that sometimes it just wont appear in the window. So I drew…

Humble_Snowman
- 71
- 7
1
vote
1 answer
decisionBar() won't blit the image to the screen when it is called
showScreen = True
if showScreen == True:
display = pygame.display.set_mode((500, 200))
pygame.display.set_caption("Decision Bar Window")
decisionBarImage = pygame.image.load('D:/Adriel/Documents/Python…

ChronicleEdge
- 19
- 6
1
vote
0 answers
Flickering command prompt screen while making a text based game in python
I am making a text based game and i tried to implement a basic game loop where the map is just being drawn and cleared. However the result is just a flickering mess. When i read through articles about how frames per seocond work, they just say that…
user12291970
1
vote
2 answers
Screen only updates when I check for user input pygame
I'm using pygame and updating to the screen every loop of the main loop. What I don't understand is nothing will update until I add a for loop looking for events, then suddenly all the updating does occur. Why is this?
def run(self):
…

Alesi Rowland
- 379
- 2
- 16
1
vote
2 answers
"descriptor 'blit' of 'pygame.Surface' object needs an argument"
Hello I am trying to create a rpg game in pygame
However, everytime i try to run the code to test it it tells me
"descriptor 'blit' of 'pygame.Surface' object needs an argument"
I believe I have already givin it an argument.
import pygame
import…

Brandon Coffman
- 15
- 3
1
vote
1 answer
Pygame: How do I blit and rotate an image to connect two points on the screen?
Here is a test program. I started with two random dots and the line connecting them. Now, I want to take a given image (with x,y dimensions of 79 x 1080) and blit it on top of the guide line. I understand that arctan will give me the angle between…

Marc Maxmeister
- 4,191
- 4
- 40
- 54
1
vote
1 answer
Image lagging while blitting on top of mouse rect
I'm trying to build a simple version of an aim trainer using pygame and have decided to change the original mouse pointer to a crosshair (an image). When testing if the image has been blitted on the mouse rect I noticed that the image is…

Alex
- 35
- 3
1
vote
0 answers
Optimizing Render Texture
I'm trying to render a shader on my mobile device. I use Graphics.Blit to render the shader as follows,
void OnRenderImage(RenderTexture src, RenderTexture dest)
{
Graphics.Blit(src, null, shader);
}
Unfortunately, it is slow in mobile…
user6092898
1
vote
2 answers
Pygame Text Not appearing when using screen.blit()
I have a problem where I want "GAME OVER" to appear when the playable rerctangle touches the boundaries, but it won't appear. I've tried several positions where I could include the screen.blit() command, but none of them work. The game seems to just…

Noah F
- 15
- 4
1
vote
0 answers
Figure customizations get removed after I set blit in matplotlib FuncAnimation
I need to increase FPS of matplotlib FuncAnimation. Blitting is one way but it destroys the figure styles and customizations. How do I preserve the style while applying blit ?
I am trying to animate time series data. I developed a class to do just…

Naman Jain
- 63
- 1
- 9