Questions tagged [bitblit]

Bit blit (bit-level block transfer) is a computer graphics operation in which several bitmaps are combined into one using a raster operator

7 questions
19
votes
4 answers

How to render to offscreen bitmap then blit to screen using Core Graphics

I would like to render to an offscreen bitmap (or array of RGBA values) and then blit those to a UIView during in the view's drawRect function. I would prefer to do full 32-bit rendering (including alpha channel), but would also be content with…
Frank Krueger
  • 69,552
  • 46
  • 163
  • 208
2
votes
2 answers

wxPython wxDC object from win32gui.GetDC

I am getting a DC for a window handle of an object in another program using win32gui.GetDC which returns an int/long. I need to blit this DC into a memory DC in python. The only thing I can't figure out how to do is get a wxDC derived object from…
flxkid
  • 1,441
  • 1
  • 13
  • 21
1
vote
0 answers

How can I XOR an image onto another image in WPF (C#)?

I'm writing an application where I need a crosshair cursor to pick points on an arbitrary image. Being as the image may contain both light and dark regions, I'm looking to XOR the cursor on top of the image, thus inverting the colours of the pixels…
Lee.J.Baxter
  • 495
  • 4
  • 12
1
vote
1 answer

Doing something like bitblit on the gpu

I was looking at some talks by Dan Ingalls and he was talking about how they were able to do almost real time 2D graphics way back in the 1970's by a technique called bitblit This was all done in software and directly on the monitor, is there any…
user1610950
  • 1,837
  • 5
  • 33
  • 49
0
votes
2 answers

C++: Avoid flickering using WM_ERASEBKGND-Message in MFC-Application

in the OnDraw()-Method i create a Bitmap and blit it to the output every time the window size changes: void CmbmView::OnDraw(CDC* pDC) { CRect WindowSize; HDC hdc; BITMAPINFO pbmi; HBITMAP hbm; CBitmap *pBitmap; CDC MemDC; void*…
viertro
  • 173
  • 1
  • 7
0
votes
1 answer

TransparentBlt Produces a Non-Sharp Image

I'm rendering text (using TextRenderer.DrawText) onto a Bitmap which was back-colored solid White (Color.White) using the FillRectangle method. I then TransparentBlt this Bitmap onto a memory-DC including a colorful background picture, using…
Bliss
  • 426
  • 2
  • 5
  • 19
0
votes
1 answer

WM_PAINT Bitblitting multiple times?

This is for C++ - win32. Basically I've loaded an image (bmp) into a HBITMAP from a file and bitblitted it to the device context for the main window. How would I call it again in case I want to change the image? I've called InvalidateRectangle() and…
user1255454
  • 669
  • 1
  • 8
  • 18