Skip to content

CopyPixelFast

Narta Xaymar Dirks edited this page Oct 28, 2026 · 8 revisions

Blitz3DBlitzPlusBlitzBasic

CopyPixelFast

CopyPixelFast src_x:Int32, src_y:Int32, src_buffer:Int32, dest_x:Int32, dest_y:Int32, dest_buffer:Int32=0
Parameter Type Default Description
src_x Int32 required Horizontal position of the pixel to copy.
src_y Int32 required Vertical position of the pixel to copy.
src_buffer Int32 required The locked buffer to copy from.
dest_x Int32 required Horizontal position to copy to.
dest_y Int32 required Vertical position to copy to.
dest_buffer Int32 0 The locked buffer to copy to. Defaults to the current buffer.

Description

The quick form of CopyPixel. Both buffers must be locked with LockBuffer first, and the position is not checked against the edges of the original.

Differences

  • A buffer that is not locked stops the program with an error message. Positions outside of a buffer are ignored instead of writing into other memory like the original could.
  • Pixels are copied with all the bits that the buffers have: a buffer made by Graphics3D with the depth 64 does not lose anything on the way. See Color depth.

Related Commands

CopyPixel, CopyRect, ReadPixel, ReadPixelFast, ReadPixelFast64 〔BlitzLLVM〕, WritePixel, WritePixelFast, WritePixelFast64 〔BlitzLLVM〕

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally