Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CMYKModel (0.22 sec)

  1. src/image/color/ycbcr.go

    	g := (0xffff - uint32(c.M)*0x101) * w / 0xffff
    	b := (0xffff - uint32(c.Y)*0x101) * w / 0xffff
    	return r, g, b, 0xffff
    }
    
    // CMYKModel is the [Model] for CMYK colors.
    var CMYKModel Model = ModelFunc(cmykModel)
    
    func cmykModel(c Color) Color {
    	if _, ok := c.(CMYK); ok {
    		return c
    	}
    	r, g, b, _ := c.RGBA()
    	cc, mm, yy, kk := RGBToCMYK(uint8(r>>8), uint8(g>>8), uint8(b>>8))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  2. src/image/image.go

    	// Stride is the Pix stride (in bytes) between vertically adjacent pixels.
    	Stride int
    	// Rect is the image's bounds.
    	Rect Rectangle
    }
    
    func (p *CMYK) ColorModel() color.Model { return color.CMYKModel }
    
    func (p *CMYK) Bounds() Rectangle { return p.Rect }
    
    func (p *CMYK) At(x, y int) color.Color {
    	return p.CMYKAt(x, y)
    }
    
    func (p *CMYK) RGBA64At(x, y int) color.RGBA64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 34.9K bytes
    - Viewed (0)
  3. src/image/jpeg/reader.go

    			cm = color.RGBAModel
    		}
    		return image.Config{
    			ColorModel: cm,
    			Width:      d.width,
    			Height:     d.height,
    		}, nil
    	case 4:
    		return image.Config{
    			ColorModel: color.CMYKModel,
    			Width:      d.width,
    			Height:     d.height,
    		}, nil
    	}
    	return image.Config{}, FormatError("missing SOF marker")
    }
    
    func init() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 22.5K bytes
    - Viewed (0)
Back to top