Skip to content

CopyImage

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

Blitz3DBlitzPlusBlitzBasic

CopyImage

CopyImage:Int32 image:Int32
Parameter Mode Type Default Description
image In Int32 required The image to copy.

Returns: A handle for the new image.

Description

Makes a new image that has the same pictures, handle and mask color as an existing one. Changes to the copy, such as ScaleImage, do not change the original, so copy an image before you transform it for several uses.

Examples

Graphics 320, 240, 0, 2
SetBuffer BackBuffer()
Local original = CreateImage(32, 32)
Local copy = CopyImage(original)
ScaleImage copy, 2, 2
Print ImageWidth(original) + " and " + ImageWidth(copy)
WaitKey

Related Commands

CreateImage, DrawImage, FreeImage, GrabImage, HandleImage, LoadAnimImage, LoadImage, MaskImage

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally