square_image | R Documentation |
Transforms the image square by placing borders at the edges (Transforma a imagem quadrada colocando bordas nas margens).
square_image(im,r=1,g=1,b=1,plot=FALSE)
im |
:Image in ExpImage format (Imagem no formato do ExpImage). |
r |
:Value from 0 to 1 corresponding to the Red band (Valor de 0 a 1 correspondente a banda de Vermelho). |
g |
:Value from 0 to 1 corresponding to the Green band (Valor de 0 a 1 correspondente a banda de Verde). |
b |
:Value from 0 to 1 corresponding to the Blue band (Valor de 0 a 1 correspondente a banda de Azul). |
plot |
:TRUE if you want to see the image resized (TRUE se desejar ver a imagem redimensionada). |
Returns the resolution in DPI of an image. (Retorna a resolução em uma imagem).
Alcinei Mistico Azevedo (Instituto de ciencias agrarias da UFMG)
pick_color
, pick_length
im=read_image(example_image(10),plot=TRUE)
square_image(im,r=0,g=0,b=1,plot=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.