Skip to main content

Questions tagged [blit]

BLock Image Transfer - Involves copying one bitmap onto another using a raster operator.

blit
0 votes
0 answers
45 views

Contour is not restored when blitting imshow Plot

Here is a MWE: import numpy as np import matplotlib.pyplot as plt def hamilton(x, p): return p**2 + x**4 - x**2 + x/7 def get_random_matrix(x, y): return np.random.uniform(size=x*y).reshape((...
Noctis's user avatar
  • 101
-1 votes
1 answer
44 views

Can't get one SDL_Surface to blit on top of another

I am trying to get a colored box to blit on top of a black surface that I'm using as my window background. But when I compile and run this program all I get is the black window screen: #include <...
czmead's user avatar
  • 1
0 votes
0 answers
22 views

blit minimal example fails to keep plot visible

I am trying to get the Python maplotlib, Faster rendering by using blotting - Minimal example to work correctly. Faster rendering by using blitting The code from that example is below. The sample code ...
Stuart Lynne's user avatar
1 vote
1 answer
40 views

Is there a way to blit a semi-transparent image to a screen only while collision is occurring?

I have this code for an enemy character that has a hitbox of 20, 20 saved to the Rect obj pursrect. I also have code detailing a 200 pixel box that constantly follows the player around directly on top ...
T3CHN0BL4ST's user avatar
0 votes
0 answers
61 views

QT Mplwidget, plot with blitting

I'm a python beginner, and I'm developing my first GUI using QtDesigner to draw serial port reads to HF data. I have added four widgets to it. I'm using matplotlib.animation class, but I found that if ...
B. L's user avatar
  • 1
0 votes
1 answer
883 views

Graphics.Blit to copy material to texture gives incorrect results

I have a material using a shader I wrote. I am using HDRP. This shader samples a texture, does some manipulation to the texture, and outputs the result. I want to save the the result of this ...
Program232323's user avatar
0 votes
1 answer
129 views

PyGame "blit" not working, but there is no error message

For some reason, the PyGame blit command is not working for me. Whenever I run my code, nothing appears on screen, but there is no error message in the console. import pygame pygame.init() screen = ...
Manolo Gonzalez's user avatar
0 votes
2 answers
112 views

Image not rendering .bmp image C++ SDL

I am learning SDL, and I am trying to render a .bmp image, but it just displays a black screen. Here is the code: #include <SDL.h> #include "engine.cpp" #include <iostream> ...
Hudson Rocke's user avatar
1 vote
1 answer
459 views

Live plotting nicely with blit or Animation from matplotlib

Trying to be short and fast . I have a scatter plot I want to do in a for loop in live. So I have this : import numpy as np import matplotlib.pyplot as plt from matplotlib.animation import ...
et11enne's user avatar
  • 240
1 vote
1 answer
69 views

How to save an image after changing its resolution in Pygame?

Currently, I am a beginner when it comes to Pygame, and have been trying to allow the user to hand-draw digits into a canvas. I have managed to get the code to draw and clear the canvas to work. ...
Help_Me_Please's user avatar
0 votes
0 answers
50 views

Dummy camera clears the depth buffer

I have a camera set up to blit a texture to the screen. The camera is set to Don't Clear and has nothing in the Culling Mask. The blit is done with a basic unlit shader with ZWrite Off and ZTest ...
s1ni5t3r's user avatar
  • 701
1 vote
0 answers
273 views

Flickering windows for Matplotlib animation

I'm trying to create a simulator in Python with Matplotlib as the GUI. I'd like to have a number of different figures, all individually animated - i.e. one showing the main simulation window, another ...
LordCat's user avatar
  • 462
0 votes
1 answer
263 views

How to matplotlib blit artist outside axes?

https://matplotlib.org/stable/gallery/event_handling/cursor_demo.html Im trying to make a cross hair cursor with a annotation on the right axis to show the Y-value everything works fine except when ...
Beginner's user avatar
0 votes
1 answer
12 views

How to clear screan.blit()

I am doing notification window and I want to do when massage pop up is shows for some time and then it clears it self. I know how to do that it waits with time.sleep() but I dont know how to clear ...
HIpex's user avatar
  • 75
1 vote
2 answers
273 views

blit opencv camera capture with pygame throws TypeError: argument 1 must be pygame.Surface, not cv2.VideoCapture

I'm new to pygame and never used it before and wanted to know how I can blit or display my webcam into the surface by using pygame and opencv but I keep getting the message: Traceback (most recent ...
Saltbottle's user avatar

15 30 50 per page
1
2 3 4 5
20