Skip to content

WritePixelFast64

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

WritePixelFast64 〔BlitzLLVM〕

WritePixelFast64 x:Int32, y:Int32, argb:Int64, buffer:Int32=0
Parameter Type Default Description
x Int32 required Horizontal position of the pixel.
y Int32 required Vertical position of the pixel.
argb Int64 required The color, with 16 bits for each of alpha, red, green and blue from the top.
buffer Int32 0 The locked buffer to write to. Defaults to the current buffer.

Description

〔BlitzLLVM〕 This command does not exist in the original Blitz products. BlitzLLVM adds it.

Sets a pixel of a locked buffer to a color given in the form of WritePixel64. The buffer has to be locked with LockBuffer and the change shows when it is unlocked. This is a BlitzLLVM extension.

Differences

  • A position outside of the buffer is ignored, and a buffer that is not locked stops the program with an error message.

Examples

Graphics3D 320, 240, 64, 2
SetBuffer BackBuffer()
LockBuffer
For x = 0 To 255
	WritePixelFast64 x, 10, (Long($FFFF) Shl 48) Or (Long(x * 257) Shl 32) Or Long($4000)
Next
UnlockBuffer
Flip
WaitKey

Related Commands

CopyPixel, CopyPixelFast, ReadPixel, ReadPixelFast, ReadPixelFast64 〔BlitzLLVM〕, WritePixel, WritePixel64 〔BlitzLLVM〕, WritePixelFast

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally