Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger

Name

kopier()

Examples
example pic
Bild img = lad_s_Bild("eames.jpg");
zeig_s_Bild(img, 0, 0);
kopier(15, 25, 10, 10, 35, 25, 50, 50);
kei_Fuellfarb();
// Rectangle shows area being copied
Viereck(15, 25, 10, 10);
Description Copies a region of pixels from the display window to another area of the display window and copies a region

of pixels from an image used as the srcImg parameter into the display window. If the source and destination

regions aren't the same size, it will automatically resize the source pixels to fit the specified target region. No

alpha information is used in the process, however if the source image has an alpha channel set, it will be

copied as well.

The Bildmodus() function changes the way the parameters work. For example, a call to

Bildmodus(CORNERS) will change the Feischterbreiti and Feischterhoechi parameters to define the x and y

values of the opposite corner of the image.

Syntax
kopier(x, y, Feischterbreiti, Feischterhoechi, dx, dy, dFeischterbreiti, dFeischterhoechi)
kopier(srcImg, x, y, Feischterbreiti, Feischterhoechi, dx, dy, dFeischterbreiti, 
dFeischterhoechi)
Parameters
x Ganzizahl: X coordinate of the source's upper left corner
y Ganzizahl: Y coordinate of the source's upper left corner
Feischterbreiti Ganzizahl: source image Feischterbreiti
Feischterhoechi Ganzizahl: source image Feischterhoechi
dx Ganzizahl: X coordinate of the destination's upper left corner
dy Ganzizahl: Y coordinate of the destination's upper left corner
dFeischterbreiti Ganzizahl: destination image Feischterbreiti
dFeischterhoechi Ganzizahl: destination image Feischterhoechi
srcImg Bild: image variable referring to the source image
Usage Web & Application
Related Bildmodus()
misch()
farb_vom_Pixel()
Stefan Baltensperger 2009

Creative Commons License