Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for CMYKModel (0.48 sec)

  1. src/image/draw/bench_test.go

    			dst = dst1
    		} else {
    			b.Fatal("unknown destination color model", dcm)
    		}
    	}
    
    	var src image.Image
    	switch scm {
    	case nil:
    		src = &image.Uniform{C: color.RGBA{0x11, 0x22, 0x33, 0x44}}
    	case color.CMYKModel:
    		src1 := image.NewCMYK(image.Rect(0, 0, srcw, srch))
    		for y := 0; y < srch; y++ {
    			for x := 0; x < srcw; x++ {
    				src1.SetCMYK(x, y, color.CMYK{
    					uint8(13 * x % 0x100),
    					uint8(11 * y % 0x100),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. api/go1.5.txt

    pkg image/color, type CMYK struct, C uint8
    pkg image/color, type CMYK struct, K uint8
    pkg image/color, type CMYK struct, M uint8
    pkg image/color, type CMYK struct, Y uint8
    pkg image/color, var CMYKModel Model
    pkg image/gif, const DisposalBackground = 2
    pkg image/gif, const DisposalBackground ideal-int
    pkg image/gif, const DisposalNone = 1
    pkg image/gif, const DisposalNone ideal-int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Alpha16Model", Var, 0},
    		{"AlphaModel", Var, 0},
    		{"Black", Var, 0},
    		{"CMYK", Type, 5},
    		{"CMYK.C", Field, 5},
    		{"CMYK.K", Field, 5},
    		{"CMYK.M", Field, 5},
    		{"CMYK.Y", Field, 5},
    		{"CMYKModel", Var, 5},
    		{"CMYKToRGB", Func, 5},
    		{"Color", Type, 0},
    		{"Gray", Type, 0},
    		{"Gray.Y", Field, 0},
    		{"Gray16", Type, 0},
    		{"Gray16.Y", Field, 0},
    		{"Gray16Model", Var, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top