Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewGray (0.09 sec)

  1. src/image/jpeg/scan.go

    package jpeg
    
    import (
    	"image"
    )
    
    // makeImg allocates and initializes the destination image.
    func (d *decoder) makeImg(mxx, myy int) {
    	if d.nComp == 1 {
    		m := image.NewGray(image.Rect(0, 0, 8*mxx, 8*myy))
    		d.img1 = m.SubImage(image.Rect(0, 0, d.width, d.height)).(*image.Gray)
    		return
    	}
    
    	h0 := d.comp[0].h
    	v0 := d.comp[0].v
    	hRatio := h0 / d.comp[1].h
    	vRatio := v0 / d.comp[1].v
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 00:46:29 UTC 2024
    - 15.7K bytes
    - Viewed (0)
Back to top