Questions tagged [blit]

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

303 questions
0
votes
3 answers

SDL_Surface refuse to blit

I'm trying to make a very little and simple snippet with SDL. This one works like a charm : SDL_Window * window = SDL_CreateWindow("SDLTest", 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, SDL_SWSURFACE); screen = SDL_GetWindowSurface(window); SDL_Color…
Thomas Ayoub
  • 29,063
  • 15
  • 95
  • 142
0
votes
1 answer

AS3 Blitting is Slower than a Movieclip. Why?

I tried following a combination of Lee Brimlow's blitting tutorial series and and the technique in Rex Van der spuy's "advanced game design with flash" I am a developer working on a web online virutal world made in flash. I made a phone application…
Fans
  • 79
  • 1
  • 9
0
votes
2 answers

How to display a repeatedly drawn CoreGraphics bitmap context on the screen without flickering using Core Animation?

i have a large NSView that shows a custom Quartz2D drawing which repeatedly changes at high frame rates. Only some parts of drawing may change from frame to frame though. My approach so far is first drawing into an offscreen bitmap context, then…
0
votes
1 answer

Pygame - Blitting Text even after the Key is Pressed

So I'm trying to make a function inside a "scene" class to have text pop up whenever you press "z" and continue to be blitted for a while. If I use the pygame.key.get_pressed() it only blitz while Z is pressed. I want it to pop up when Z is pressed…
Ronnie Sena
  • 7
  • 1
  • 2
0
votes
2 answers

Blit Bug: Not Showing Up

I'm trying to create a Hangman-ish game, and I've noticed something weird going on with the screen.blit. In the word 'CANADA', there are three A's. I have successfully created a list with all the letters of the alphabet, and when I click on 'C' it…
JaredCubilla
  • 538
  • 1
  • 8
  • 24
0
votes
2 answers

In pygame, can i use a list to blit an object multiple times with only one line of code?

I am trying to make a platformer in python 2.7 using pygame. I am very inexperienced in using lists in python. i want to make the platforms tileable so that they can be any length. Lets say i wanted it to be 250 pixels long and each individual image…
Kevin Klute
  • 450
  • 1
  • 4
  • 22
0
votes
2 answers

Blitting text in pygame

Im making a game to practice mygame and im creating a highscore screen but i cant seem to properly blit the text how i want here is the highscore method def high_screen(self): screen.blit(background,(0,0)) myfont =…
Serial
  • 7,925
  • 13
  • 52
  • 71
0
votes
1 answer

Blitting in new x position Pygame

Im writing a basic mouse dodge game and i need to blit little stars to dodge. i made it so that once one star leaves the screen it blits it again at the top> that works but it blits it in the same x position Here is the update code that moves the…
Serial
  • 7,925
  • 13
  • 52
  • 71
0
votes
1 answer

How can i capture screenshot and assign to a static control? Winapi

I am trying to capture a screen and assign it to some sort of control so I can click the picture and retrieve the coordinates at which the picture was clicked. How would I go about doing this? Im trying to assign a bitmap to a static control, and…
Kelvin
  • 233
  • 1
  • 4
  • 13
0
votes
1 answer

Upgrade the quality of a blit (Winrt c#)

I actually try to make one and unique image of a canvas with multiple things on it. I create an image with all I need, but the quality of the image is really poor. Do you know how I can upgrade it ? This is the end of my code, when I save the…
Sw1a
  • 245
  • 4
  • 15
0
votes
1 answer

Divide et impera for matrices rotating

I have tried to solve the 2nd problem b and d subproblems from this exercise: http://courses.engr.illinois.edu/cs473/sp2010/homework/hw1.pdf I solved the b to the following way: My first question is that: Is my solution correct for the problem…
0
votes
2 answers

Why can't I blit background image whilst character image is blited?

I'm trying to display a background image for my game but when I blit it, it only shows my main playable character on the screen with a black background. Can anyone help me please with this problem. Here's the code: import sys, pygame,…
0
votes
1 answer

Python - Pygame - Rotation not very smooth? [I know why, just can't think of solution]

I'm making a simple game to get my knowledge of Python and Pygame going, but, since I haven't used rotation before, I am encountering a problem. Every time my rectangle rotates, it gets bigger and smaller, and my game needs a centered rotating…
Bluetiger6001
  • 151
  • 2
  • 3
  • 9
0
votes
1 answer

Pygame with strange variable issues - a couple variables are increasing for unknown reason

I am having a really strange problem with Pygame, and it's got me stumped for the last few (OK, more like 5) hours. There are free programs out there for making photo mosaics, but ever since my early days tinkering with VB5, I've wanted to write my…
user1475777
  • 92
  • 1
  • 4
0
votes
1 answer

Join several alpha masks on one bitmap

I have two layers of bitmaps: 1st - some random image 2nd - bitmap filled with black color that covers 1st bitmap Also I have a mask bitmap. I trying to make something like this https://dl.dropbox.com/u/13089585/so/001.jpg But I get something like…
Michael Miriti
  • 301
  • 3
  • 14