Skip to content
ExamplesOpen editor ↗

kopololaDiphikisele

→ copy()

Copies a pixel region.

kopololaDiphikisele([setshwantsho], xGoTswa, yGoTswa, bopharaGoTswa, boleeleGoTswa, xGoYa, yGoYa, bopharaGoYa, boleeleGoYa)

Copies a rectangular region into the current canvas, scaling it when source and destination sizes differ. Omit the source image to copy from the canvas itself. Use dirisaMoGo(destination, kopololaDiphikisele, source, ...) to copy into an image or graphics buffer. This edits destination pixels and returns undefined; it does not create a new image.

NameTypeDescription
setshwantsho (optional)setshwantsho / boalo / elementeSource image or graphics; omit to copy within the current canvas.
xGoTswapaloSource or destination rectangle coordinate or size.
yGoTswapaloSource or destination rectangle coordinate or size.
bopharaGoTswapaloSource or destination rectangle coordinate or size.
boleeleGoTswapaloSource or destination rectangle coordinate or size.
xGoYapaloSource or destination rectangle coordinate or size.
yGoYapaloSource or destination rectangle coordinate or size.
bopharaGoYapaloSource or destination rectangle coordinate or size.
boleeleGoYapaloSource or destination rectangle coordinate or size.
Copies a pixel region
tiro setaLoeto() {
  thalaKanefase(320, 220);
  bokamorago(235);
  tlatsaMmala(30, 140, 150);
  thalaSediko(70, 90, 60);
  kopololaDiphikisele(35, 55, 70, 70, 165, 60, 100, 100);
  emisaPoapoeletso();
}

dirisaMoGo, mmalaWaPhikisele, thalaSetshwantsho