1
0
mirror of https://github.com/Intervention/image.git synced 2025-02-22 21:32:53 +01:00

Add docblock

This commit is contained in:
Oliver Vogel 2023-10-22 15:23:55 +02:00
parent eb30ab9ac2
commit 27f8778187

View File

@ -46,9 +46,15 @@ trait CanHandleColors
}
/**
* Transforms given color to the corresponding ImagickPixel
* Transforms given color to the corresponding ImagickPixel in given colorspace
*
* Colorspaces of color might be different from given colorspace. You might
* have a CMYK Image but give an rgb color to a method. This makes sure
* that the color is converted to the given colorspace. In this case
* the image colorspace which is passed to this method.
*
* @param ColorInterface $color
* @param ColorspceInterface $colorspace
* @return ImagickPixel
*/
public function colorToPixel(ColorInterface $color, ColorspaceInterface $colorspace): ImagickPixel