Skip to content

CopyPixelFast

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

Blitz3DBlitzPlusBlitzBasic

CopyPixelFast

CopyPixelFast:Void src_x:Int32, src_y:Int32, src_buffer:Int32, dest_x:Int32, dest_y:Int32, dest_buffer:Int32=0
Parameter Mode Type Default Description
src_x In Int32 required Horizontal position of the pixel to copy.
src_y In Int32 required Vertical position of the pixel to copy.
src_buffer In Int32 required The locked buffer to copy from.
dest_x In Int32 required Horizontal position to copy to.
dest_y In Int32 required Vertical position to copy to.
dest_buffer In 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 is ignored by a build without -d, and stops a debug build (-d) 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



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally