Created
May 24, 2023 18:21
-
-
Save douglasabnovato/755cb56b56e4dcbbdd982536999a117c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
img = new SimpleImage( "img/circulo.bmp" ); | |
img.setZoom( 20 ); | |
pixel = img.getPixel( 4, 0 ); | |
pixel.setRed( 255 ); | |
print(img); |
manipular o pixel do canto superior esquerdo para que fique vermelho
o resultado do zoom fosse um afastamento de 2 x em vez de uma aproximação de 2x
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
img = new SimpleImage("img/circulo.bmp");
img.setZoom(0.5);
print(img);