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.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
setshwantsho (optional) | setshwantsho / boalo / elemente | Source image or graphics; omit to copy within the current canvas. |
xGoTswa | palo | Source or destination rectangle coordinate or size. |
yGoTswa | palo | Source or destination rectangle coordinate or size. |
bopharaGoTswa | palo | Source or destination rectangle coordinate or size. |
boleeleGoTswa | palo | Source or destination rectangle coordinate or size. |
xGoYa | palo | Source or destination rectangle coordinate or size. |
yGoYa | palo | Source or destination rectangle coordinate or size. |
bopharaGoYa | palo | Source or destination rectangle coordinate or size. |
boleeleGoYa | palo | Source or destination rectangle coordinate or size. |
Examples
Section titled “Examples”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();
}