Home | History | Annotate | Download | only in image

Lines Matching defs:CMYK

829 // CMYK is an in-memory image whose At method returns color.CMYK values.
830 type CMYK struct {
840 func (p *CMYK) ColorModel() color.Model { return color.CMYKModel }
842 func (p *CMYK) Bounds() Rectangle { return p.Rect }
844 func (p *CMYK) At(x, y int) color.Color {
848 func (p *CMYK) CMYKAt(x, y int) color.CMYK {
850 return color.CMYK{}
853 return color.CMYK{p.Pix[i+0], p.Pix[i+1], p.Pix[i+2], p.Pix[i+3]}
858 func (p *CMYK) PixOffset(x, y int) int {
862 func (p *CMYK) Set(x, y int, c color.Color) {
867 c1 := color.CMYKModel.Convert(c).(color.CMYK)
874 func (p *CMYK) SetCMYK(x, y int, c color.CMYK) {
887 func (p *CMYK) SubImage(r Rectangle) Image {
893 return &CMYK{}
896 return &CMYK{
904 func (p *CMYK) Opaque() bool {
908 // NewCMYK returns a new CMYK image with the given bounds.
909 func NewCMYK(r Rectangle) *CMYK {
912 return &CMYK{buf, 4 * w, r}