Decrease the size of an image, in pixel. Process into a data frame. Internal function.
A raster array from an image.
Size of output image in pixel, where one pixel = one 'brick'. Use a single value (e.g. 48
) for a square image with 48 pixels on each side.
Use an array of two values for a rectangular image c(width, height)
.
A value >1 will increase the brightness of the image while a positive value <1 will decrease the brightness.
Array of values c(1, 2, 3)
associated with R, G, B color channels. Swap values in array to swap color channels for a fun visual effect.
A list with element Img_scaled
containing a data frame of the x- & y-coordinates, R, G, B channels, and hex color of each brick (pixel).