Get pixel color in rMagick

I have 2 images, a logo and a background, a logo is a small image that I place in the center of the background. To make the image look better, I try to make it so that it lifts the color at the edge of the logo and sets it as the background color of the background.

Everything that works for me is a color finder. I canโ€™t find anything like what I want. I would expect:

logo.colour_at(0,0) 

Does anyone know how to do this?

+4
source share
1 answer

This is done using:

 logo.pixel_color(0,0) 
+8
source

Source: https://habr.com/ru/post/1311512/


All Articles