Documentation ¶
Index ¶
- func NewErrorTrap() *errorTrap
- func ParallelClusterDistributedReadWrite(i draw.Image, c int, a ReadWriteAccess)deprecated
- func ParallelClusterDistributedReadWriteE(i draw.Image, c int, a ReadWriteAccessE) errordeprecated
- func ParallelColumnColorRead(i image.Image, a ReadColorAccess)deprecated
- func ParallelColumnColorReadE(i image.Image, a ReadColorAccessE) errordeprecated
- func ParallelColumnColorReadWrite(i draw.Image, a ReadWriteColorAccess)deprecated
- func ParallelColumnColorReadWriteE(i draw.Image, a ReadWriteColorAccessE) errordeprecated
- func ParallelColumnColorReadWriteNew(i image.Image, a ReadWriteColorAccess) image.Imagedeprecated
- func ParallelColumnColorReadWriteNewE(i image.Image, a ReadWriteColorAccessE) (image.Image, error)deprecated
- func ParallelColumnIndices(w, h int, a IndicesAccess)deprecated
- func ParallelColumnRead(i image.Image, a ReadAccess)deprecated
- func ParallelColumnReadE(i image.Image, a ReadAccessE) errordeprecated
- func ParallelColumnReadWrite(i draw.Image, a ReadWriteAccess)deprecated
- func ParallelColumnReadWriteE(i draw.Image, a ReadWriteAccessE) errordeprecated
- func ParallelColumnReadWriteNew(i image.Image, a ReadWriteAccess) image.Imagedeprecated
- func ParallelColumnReadWriteNewE(i image.Image, a ReadWriteAccessE) (image.Image, error)deprecated
- func ParallelDistributedReadWrite(src draw.Image, c int, d ReadWriteDelegate)
- func ParallelDistributedReadWriteE(src draw.Image, c int, d ReadWriteErrorableDelegate) error
- func ParallelIndices(w, h int, d IndicesDelegate)
- func ParallelMatrixReadWrite[T any](m [][]T, d func(x, y int, value T) T)
- func ParallelMatrixReadWriteE[T any](m [][]T, d func(x, y int, value T) (T, error)) error
- func ParallelNrgbaRead(src *image.NRGBA, d NrgbaReadDelegate)
- func ParallelNrgbaReadE(src *image.NRGBA, d NrgbaReadErrorableDelegate) error
- func ParallelNrgbaReadWrite(src *image.NRGBA, d NrgbaReadWriteDelegate)
- func ParallelNrgbaReadWriteE(src *image.NRGBA, d NrgbaReadWriteErrorableDelegate) error
- func ParallelNrgbaReadWriteNew(src *image.NRGBA, d NrgbaReadWriteDelegate) *image.NRGBA
- func ParallelNrgbaReadWriteNewE(src *image.NRGBA, d NrgbaReadWriteErrorableDelegate) (*image.NRGBA, error)
- func ParallelRead(src image.Image, d ReadDelegate)
- func ParallelReadE(src image.Image, d ReadErrorableDelegate) error
- func ParallelReadWrite(src draw.Image, d ReadWriteDelegate)
- func ParallelReadWriteE(src draw.Image, d ReadWriteErrorableDelegate) error
- func ParallelReadWriteNew(src image.Image, d ReadWriteDelegate) draw.Image
- func ParallelReadWriteNewE(src image.Image, d ReadWriteErrorableDelegate) (draw.Image, error)
- func ParallelRgbaRead(src *image.RGBA, d RgbaReadDelegate)
- func ParallelRgbaReadE(src *image.RGBA, d RgbaReadErrorableDelegate) error
- func ParallelRgbaReadWrite(src *image.RGBA, d RgbaReadWriteDelegate)
- func ParallelRgbaReadWriteE(src *image.RGBA, d RgbaReadWriteErrorableDelegate) error
- func ParallelRgbaReadWriteNew(src *image.RGBA, d RgbaReadWriteDelegate) *image.RGBA
- func ParallelRgbaReadWriteNewE(src *image.RGBA, d RgbaReadWriteErrorableDelegate) (*image.RGBA, error)
- func ParallelRowColorRead(i image.Image, a ReadColorAccess)deprecated
- func ParallelRowColorReadE(i image.Image, a ReadColorAccessE) errordeprecated
- func ParallelRowColorReadWrite(i draw.Image, a ReadWriteColorAccess)deprecated
- func ParallelRowColorReadWriteE(i draw.Image, a ReadWriteColorAccessE) errordeprecated
- func ParallelRowColorReadWriteNew(i image.Image, a ReadWriteColorAccess) image.Imagedeprecated
- func ParallelRowColorReadWriteNewE(i image.Image, a ReadWriteColorAccessE) (image.Image, error)deprecated
- func ParallelRowIndices(w, h int, a IndicesAccess)deprecated
- func ParallelRowRead(i image.Image, a ReadAccess)deprecated
- func ParallelRowReadE(i image.Image, a ReadAccessE) errordeprecated
- func ParallelRowReadWrite(i draw.Image, a ReadWriteAccess)deprecated
- func ParallelRowReadWriteE(i draw.Image, a ReadWriteAccessE) errordeprecated
- func ParallelRowReadWriteNew(i image.Image, a ReadWriteAccess) image.Imagedeprecated
- func ParallelRowReadWriteNewE(i image.Image, a ReadWriteAccessE) (image.Image, error)deprecated
- type IndicesAccess
- type IndicesDelegate
- type NrgbaReadDelegate
- type NrgbaReadErrorableDelegate
- type NrgbaReadWriteDelegate
- type NrgbaReadWriteErrorableDelegate
- type ReadAccess
- type ReadAccessE
- type ReadColorAccess
- type ReadColorAccessE
- type ReadDelegate
- type ReadErrorableDelegate
- type ReadWriteAccess
- type ReadWriteAccessE
- type ReadWriteColorAccess
- type ReadWriteColorAccessE
- type ReadWriteDelegate
- type ReadWriteErrorableDelegate
- type RgbaReadDelegate
- type RgbaReadErrorableDelegate
- type RgbaReadWriteDelegate
- type RgbaReadWriteErrorableDelegate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewErrorTrap ¶ added in v0.2.0
func NewErrorTrap() *errorTrap
func ParallelClusterDistributedReadWrite
deprecated
func ParallelClusterDistributedReadWrite(i draw.Image, c int, a ReadWriteAccess)
Perform parallel reading and editing of pixels of the passed image. For each pixel, execute the passed access function allowing to read the color and coordinates, which will return the color that the pixel should take after this operation. The changes will be applied to the passed image instance. The passed integer is the number of clusters into which the image will be divided. Each cluster is then iterated through a separate goroutine.
Deprecated: Use ParallelDistributedReadWrite instead.
func ParallelClusterDistributedReadWriteE
deprecated
func ParallelClusterDistributedReadWriteE(i draw.Image, c int, a ReadWriteAccessE) error
Perform parallel reading and editing of pixels of the passed image. For each pixel, execute the passed access function allowing to read the color and coordinates, which will return the color that the pixel should take after this operation. The changes will be applied to the passed image instance. The passed integer is the number of clusters into which the image will be divided. Each cluster is then iterated through a separate goroutine. Errors that occur in the function will be caught and the first one will be returned by the function.
Deprecated: Use ParallelDistributedReadWriteE instead.
func ParallelColumnColorRead
deprecated
func ParallelColumnColorRead(i image.Image, a ReadColorAccess)
Perform a parallel reading of the pixels of the passed image. For each pixel, execute the passed access function allowing you to read only the color. Every column is iterated in a separate goroutine.
Deprecated: Use ParallelRead instead.
func ParallelColumnColorReadE
deprecated
func ParallelColumnColorReadE(i image.Image, a ReadColorAccessE) error
Perform a parallel reading of the pixels of the passed image. For each pixel, execute the passed access function allowing you to read only the color. Every column is iterated in a separate goroutine. Errors that occur in the function will be caught and the first one will be returned by the function.
Deprecated: Use ParallelReadE instead.
func ParallelColumnColorReadWrite
deprecated
func ParallelColumnColorReadWrite(i draw.Image, a ReadWriteColorAccess)
Perform parallel reading and editing of pixels of the passed image. For each pixel, execute the passed access function allowing to read only the color, which will return the color that the pixel should take after this operation. The changes will be applied to the passed image instance. Every column is iterated in a separate goroutine.
Deprecated: Use ParallelReadWrite instead.
func ParallelColumnColorReadWriteE
deprecated
func ParallelColumnColorReadWriteE(i draw.Image, a ReadWriteColorAccessE) error
Perform parallel reading and editing of pixels of the passed image. For each pixel, execute the passed access function allowing to read only the color, which will return the color that the pixel should take after this operation. The changes will be applied to the passed image instance. Every column is iterated in a separate goroutine. Errors that occur in the function will be caught and the first one will be returned by the function.
Deprecated: Use ParallelReadWriteE instead.
func ParallelColumnColorReadWriteNew
deprecated
func ParallelColumnColorReadWriteNew(i image.Image, a ReadWriteColorAccess) image.Image
Perform parallel reading and editing of pixels of the passed image. For each pixel, execute the passed access function allowing to read only the color, which will return the color that the pixel should take after this operation. The changes will be applied to the passed image instance. The changes will be applied to a new image instance returned from this function. Every column is iterated in a separate goroutine.
Deprecated: Use ParallelReadWriteNew instead.
func ParallelColumnColorReadWriteNewE
deprecated
Perform parallel reading and editing of pixels of the passed image. For each pixel, execute the passed access function allowing to read only the color, which will return the color that the pixel should take after this operation. The changes will be applied to the passed image instance. The changes will be applied to a new image instance returned from this function. Every column is iterated in a separate goroutine. Errors that occur in the function will be caught and the first one will be returned by the function.
Deprecated: Use ParallelReadWriteNewE instead.
func ParallelColumnIndices
deprecated
added in
v0.1.0
func ParallelColumnIndices(w, h int, a IndicesAccess)
Perform a parallel iteration of the indexes according to the width and height indicated by the parameters. For each combination of indexes excute the passed access function. Each column is iterated in a separate goroutine.
Deprecated: Use ParallelIndices instead.
func ParallelColumnRead
deprecated
func ParallelColumnRead(i image.Image, a ReadAccess)
Perform a parallel reading of the pixels of the passed image. For each pixel, execute the passed access function allowing you to read the color and coordinates. Every column is iterated in a separate goroutine.
Deprecated: Use ParallelRead function instead.
func ParallelColumnReadE
deprecated
func ParallelColumnReadE(i image.Image, a ReadAccessE) error
Perform a parallel reading of the pixels of the passed image. For each pixel, execute the passed access function allowing you to read the color and coordinates. Every column is iterated in a separate goroutine. Errors that occur in the function will be caught and the first one will be returned by the function.
Deprecated: Used ParallelReadE instead.
func ParallelColumnReadWrite
deprecated
func ParallelColumnReadWrite(i draw.Image, a ReadWriteAccess)
Perform parallel reading and editing of pixels of the passed image. For each pixel, execute the passed access function allowing to read the color and coordinates, which will return the color that the pixel should take after this operation. The changes will be applied to the passed image instance. Every column is iterated in a separate goroutine.
Deprecated: Use ParallelReadWrite instead.
func ParallelColumnReadWriteE
deprecated
func ParallelColumnReadWriteE(i draw.Image, a ReadWriteAccessE) error
Perform parallel reading and editing of pixels of the passed image. For each pixel, execute the passed access function allowing to read the color and coordinates, which will return the color that the pixel should take after this operation. The changes will be applied to the passed image instance. Every column is iterated in a separate goroutine. Errors that occur in the function will be caught and the first one will be returned by the function.
Deprecated: Use ParallelReadWriteE instead.
func ParallelColumnReadWriteNew
deprecated
func ParallelColumnReadWriteNew(i image.Image, a ReadWriteAccess) image.Image
Perform parallel reading and editing of pixels of the passed image. For each pixel, execute the passed access function allowing to read the color and coordinates, which will return the color that the pixel should take after this operation. The changes will be applied to a new image instance returned from this function. Every column is iterated in a separate goroutine.
Deprecated: Use ParallelReadWriteNew instead.
func ParallelColumnReadWriteNewE
deprecated
Perform parallel reading and editing of pixels of the passed image. For each pixel, execute the passed access function allowing to read the color and coordinates, which will return the color that the pixel should take after this operation. The changes will be applied to a new image instance returned from this function. Every column is iterated in a separate goroutine. Errors that occur in the function will be caught and the first one will be returned by the function.
Deprecated: Use ParallelReadWriteNewE instead.
func ParallelDistributedReadWrite ¶ added in v0.2.0
func ParallelDistributedReadWrite(src draw.Image, c int, d ReadWriteDelegate)
Perform a parallel iteration of the pixels of the provided image. For each pixel, execute the delegate function allowing you to read the color and coordinates, the delegate return color will be set at the given coordinates. This changes will be applied to the passed image instance. The integer parameter is the number of clustes into which the image will be devided. Each cluster is then iterated in a separate goroutine.
func ParallelDistributedReadWriteE ¶ added in v0.2.0
func ParallelDistributedReadWriteE(src draw.Image, c int, d ReadWriteErrorableDelegate) error
Perform a parallel iteration of the pixels of the provided image. For each pixel, execute the delegate function allowing you to read the color and coordinates, the delegate return color will be set at the given coordinates. This changes will be applied to the passed image instance. The integer parameter is the number of clustes into which the image will be devided. Each cluster is then iterated in a separate goroutine. The iteration will break after the first error occurs and the error will be returned.
func ParallelIndices ¶ added in v0.2.0
func ParallelIndices(w, h int, d IndicesDelegate)
Perform a parallel iteration of the indexes according to the width and height provided via the parameters. Execute the delegate for each indexes combination. Each row is iterated in a separate goroutine.
func ParallelMatrixReadWrite ¶ added in v0.1.0
Perform a parallel iteration of the values of the provided matrix represented as a two-dimentional generic slice. For each entry, execute the delegate function allowing you to read the values and coordinates, the delegate return value will be set at the given coordinates. This changes will be applied to the passed two-dimentional slice instance. Each column is iterated in a separate goroutine.
func ParallelMatrixReadWriteE ¶ added in v0.1.0
Perform a parallel iteration of the values of the provided matrix represented as a two-dimentional generic slice. For each entry, execute the delegate function allowing you to read the values and coordinates, the delegate return value will be set at the given coordinates. This changes will be applied to the passed two-dimentional slice instance. Each column is iterated in a separate goroutine. The iteration will break after the first error occurs and the error will be returned.
func ParallelNrgbaRead ¶ added in v0.2.0
func ParallelNrgbaRead(src *image.NRGBA, d NrgbaReadDelegate)
Perform a parallel iteration of the pixels of the provided NRGBA image. For each pixel, execute the delegate function allowing you to read the color (R, G, B and A as uint8) and coordinates. Each row is iterated in a separate goroutine.
func ParallelNrgbaReadE ¶ added in v0.2.0
func ParallelNrgbaReadE(src *image.NRGBA, d NrgbaReadErrorableDelegate) error
Perform a parallel iteration of the pixels of the provided NRGBA image. For each pixel, execute the delegate function allowing you to read the color (R, G, B and A as uint8) and coordinates. Each row is iterated in a separate goroutine. The iteration will break after the first error occurs and the error will be returned.
func ParallelNrgbaReadWrite ¶ added in v0.2.0
func ParallelNrgbaReadWrite(src *image.NRGBA, d NrgbaReadWriteDelegate)
Perform a parallel iteration of the pixels of the provided NRGBA image. For each pixel, execute the delegate function allowing you to read the color (R, G, B and A as uint8) and coordinates, the delegate return color will be set at the given coordinates. This changes will be applied to the passed image instance. Consider using ParallelReadWriteNew if you want to avoid changes to the original image at the expense of additional allocations. Each row is iterated in a separate goroutine.
func ParallelNrgbaReadWriteE ¶ added in v0.2.0
func ParallelNrgbaReadWriteE(src *image.NRGBA, d NrgbaReadWriteErrorableDelegate) error
Perform a parallel iteration of the pixels of the provided NRGBA image. For each pixel, execute the delegate function allowing you to read the color (R, G, B and A as uint8) and coordinates, the delegate return color will be set at the given coordinates. This changes will be applied to the passed image instance. Consider using ParallelReadWriteNewE if you want to avoid changes to the original image at the expense of additional allocations. Each row is iterated in a separate goroutine. The iteration will break after the first error occurs and the error will be returned.
func ParallelNrgbaReadWriteNew ¶ added in v0.2.0
func ParallelNrgbaReadWriteNew(src *image.NRGBA, d NrgbaReadWriteDelegate) *image.NRGBA
Perform a parallel iteration of the pixels of the provided NRGBA image. For each pixel, execute the delegate function allowing you to read the color (R, G, B and A as uint8) and coordinates, the delegate return color will be set at the given coordinates. This changes will be applied to a new image instance which internaly uses the NRGBA color space and is returned by the function. Each row is iterated in a separate goroutine.
func ParallelNrgbaReadWriteNewE ¶ added in v0.2.0
func ParallelNrgbaReadWriteNewE(src *image.NRGBA, d NrgbaReadWriteErrorableDelegate) (*image.NRGBA, error)
Perform a parallel iteration of the pixels of the provided NRGBA image. For each pixel, execute the delegate function allowing you to read the color (R, G, B and A as uint8) and coordinates, the delegate return color will be set at the given coordinates. This changes will be applied to a new image instance which internaly uses the NRGBA color space and is returned by the function. Each row is iterated in a separate goroutine. The iteration will break after the first error occurs and the error will be returned.
func ParallelRead ¶ added in v0.2.0
func ParallelRead(src image.Image, d ReadDelegate)
Perform a parallel iteration of the pixels of the provided image. For each pixel, execute the delegate function allowing you to read the color and coordinates. Each row is iterated in a separate goroutine.
func ParallelReadE ¶ added in v0.2.0
func ParallelReadE(src image.Image, d ReadErrorableDelegate) error
Perform a parallel iteration of the pixels of the provided image. For each pixel, execute the delegate function allowing you to read the color and coordinates. Each row is iterated in a separate goroutine. The iteration will break after the first error occurs and the error will be returned.
func ParallelReadWrite ¶ added in v0.2.0
func ParallelReadWrite(src draw.Image, d ReadWriteDelegate)
Perform a parallel iteration of the pixels of the provided image. For each pixel, execute the delegate function allowing you to read the color and coordinates, the delegate return color will be set at the given coordinates. This changes will be applied to the passed image instance. Consider using ParallelReadWriteNew if you want to avoid changes to the original image at the expense of additional allocations. Each row is iterated in a separate goroutine.
func ParallelReadWriteE ¶ added in v0.2.0
func ParallelReadWriteE(src draw.Image, d ReadWriteErrorableDelegate) error
Perform a parallel iteration of the pixels of the provided image. For each pixel, execute the delegate function allowing you to read the color and coordinates, the delegate return color will be set at the given coordinates. This changes will be applied to the passed image instance. Consider using ParallelReadWriteNewE if you want to avoid changes to the original image at the expense of additional allocations. Each row is iterated in a separate goroutine. The iteration will break after the first error occurs and the error will be returned.
func ParallelReadWriteNew ¶ added in v0.2.0
func ParallelReadWriteNew(src image.Image, d ReadWriteDelegate) draw.Image
Perform a parallel iteration of the pixels of the provided image. For each pixel, execute the delegate function allowing you to read the color and coordinates, the delegate return color will be set at the given coordinates. This changes will be applied to a new image instance which internaly uses the NRGBA color space and is returned by the function. Each row is iterated in a separate goroutine.
func ParallelReadWriteNewE ¶ added in v0.2.0
Perform a parallel iteration of the pixels of the provided image. For each pixel, execute the delegate function allowing you to read the color and coordinates, the delegate return color will be set at the given coordinates. This changes will be applied to a new image instance which internaly uses the NRGBA color space and is returned by the function. Each row is iterated in a separate goroutine. The iteration will break after the first error occurs and the error will be returned.
func ParallelRgbaRead ¶ added in v0.2.0
func ParallelRgbaRead(src *image.RGBA, d RgbaReadDelegate)
Perform a parallel iteration of the pixels of the provided RGBA image. For each pixel, execute the delegate function allowing you to read the color (R, G, B and A as uint8) and coordinates. Each row is iterated in a separate goroutine.
func ParallelRgbaReadE ¶ added in v0.2.0
func ParallelRgbaReadE(src *image.RGBA, d RgbaReadErrorableDelegate) error
Perform a parallel iteration of the pixels of the provided RGBA image. For each pixel, execute the delegate function allowing you to read the color (R, G, B and A as uint8) and coordinates. Each row is iterated in a separate goroutine. The iteration will break after the first error occurs and the error will be returned.
func ParallelRgbaReadWrite ¶ added in v0.2.0
func ParallelRgbaReadWrite(src *image.RGBA, d RgbaReadWriteDelegate)
Perform a parallel iteration of the pixels of the provided RGBA image. For each pixel, execute the delegate function allowing you to read the color (R, G, B and A as uint8) and coordinates, the delegate return color will be set at the given coordinates. This changes will be applied to the passed image instance. Consider using ParallelReadWriteNew if you want to avoid changes to the original image at the expense of additional allocations. Each row is iterated in a separate goroutine.
func ParallelRgbaReadWriteE ¶ added in v0.2.0
func ParallelRgbaReadWriteE(src *image.RGBA, d RgbaReadWriteErrorableDelegate) error
Perform a parallel iteration of the pixels of the provided RGBA image. For each pixel, execute the delegate function allowing you to read the color (R, G, B and A as uint8) and coordinates, the delegate return color will be set at the given coordinates. This changes will be applied to the passed image instance. Consider using ParallelReadWriteNewE if you want to avoid changes to the original image at the expense of additional allocations. Each row is iterated in a separate goroutine. The iteration will break after the first error occurs and the error will be returned.
func ParallelRgbaReadWriteNew ¶ added in v0.2.0
func ParallelRgbaReadWriteNew(src *image.RGBA, d RgbaReadWriteDelegate) *image.RGBA
Perform a parallel iteration of the pixels of the provided RGBA image. For each pixel, execute the delegate function allowing you to read the color (R, G, B and A as uint8) and coordinates, the delegate return color will be set at the given coordinates. This changes will be applied to a new image instance which internaly uses the NRGBA color space and is returned by the function. Each row is iterated in a separate goroutine.
func ParallelRgbaReadWriteNewE ¶ added in v0.2.0
func ParallelRgbaReadWriteNewE(src *image.RGBA, d RgbaReadWriteErrorableDelegate) (*image.RGBA, error)
Perform a parallel iteration of the pixels of the provided RGBA image. For each pixel, execute the delegate function allowing you to read the color (R, G, B and A as uint8) and coordinates, the delegate return color will be set at the given coordinates. This changes will be applied to a new image instance which internaly uses the NRGBA color space and is returned by the function. Each row is iterated in a separate goroutine. The iteration will break after the first error occurs and the error will be returned.
func ParallelRowColorRead
deprecated
func ParallelRowColorRead(i image.Image, a ReadColorAccess)
Perform a parallel reading of the pixels of the passed image. For each pixel, execute the passed access function allowing you to read only the color. Every row is iterated in a separate goroutine.
Deprecated: Use ParallelRead instead.
func ParallelRowColorReadE
deprecated
func ParallelRowColorReadE(i image.Image, a ReadColorAccessE) error
Perform a parallel reading of the pixels of the passed image. For each pixel, execute the passed access function allowing you to read only the color. Every row is iterated in a separate goroutine. Errors that occur in the function will be caught and the first one will be returned by the function.
Deprecated: Use ParallelReadE instead.
func ParallelRowColorReadWrite
deprecated
func ParallelRowColorReadWrite(i draw.Image, a ReadWriteColorAccess)
Perform parallel reading and editing of pixels of the passed image. For each pixel, execute the passed access function allowing to read only the color, which will return the color that the pixel should take after this operation. The changes will be applied to the passed image instance. Every row is iterated in a separate goroutine.
Deprecated: Use ParallelReadWrite instead.
func ParallelRowColorReadWriteE
deprecated
func ParallelRowColorReadWriteE(i draw.Image, a ReadWriteColorAccessE) error
Perform parallel reading and editing of pixels of the passed image. For each pixel, execute the passed access function allowing to read only the color, which will return the color that the pixel should take after this operation. The changes will be applied to the passed image instance. Every row is iterated in a separate goroutine. Errors that occur in the function will be caught and the first one will be returned by the function.
Deprecated: Use ParallelReadWriteE instead.
func ParallelRowColorReadWriteNew
deprecated
func ParallelRowColorReadWriteNew(i image.Image, a ReadWriteColorAccess) image.Image
Perform parallel reading and editing of pixels of the passed image. For each pixel, execute the passed access function allowing to read only the color, which will return the color that the pixel should take after this operation. The changes will be applied to the passed image instance. The changes will be applied to a new image instance returned from this function. Every row is iterated in a separate goroutine.
Deprecated: Use ParallelReadWriteNew instead.
func ParallelRowColorReadWriteNewE
deprecated
Perform parallel reading and editing of pixels of the passed image. For each pixel, execute the passed access function allowing to read only the color, which will return the color that the pixel should take after this operation. The changes will be applied to the passed image instance. The changes will be applied to a new image instance returned from this function. Every row is iterated in a separate goroutine. Errors that occur in the function will be caught and the first one will be returned by the function.
Deprecated: Use ParallelReadWriteNewE instead.
func ParallelRowIndices
deprecated
added in
v0.1.0
func ParallelRowIndices(w, h int, a IndicesAccess)
Perform a parallel iteration of the indexes according to the width and height indicated by the parameters. For each combination of indexes excute the passed access function. Each row is iterated in a separate goroutine.
Deprecated: Use ParallelIndices instead.
func ParallelRowRead
deprecated
func ParallelRowRead(i image.Image, a ReadAccess)
Perform a parallel reading of the pixels of the passed image. For each pixel, execute the passed access function allowing you to read the color and coordinates. Every row is iterated in a separate goroutine.
Deprecated: Use ParallelRead function instead.
func ParallelRowReadE
deprecated
func ParallelRowReadE(i image.Image, a ReadAccessE) error
Perform a parallel reading of the pixels of the passed image. For each pixel, execute the passed access function allowing you to read the color and coordinates. Every row is iterated in a separate goroutine. Errors that occur in the function will be caught and the first one will be returned by the function.
Deprecated: Used ParallelReadE instead.
func ParallelRowReadWrite
deprecated
func ParallelRowReadWrite(i draw.Image, a ReadWriteAccess)
Perform parallel reading and editing of pixels of the passed image. For each pixel, execute the passed access function allowing to read the color and coordinates, which will return the color that the pixel should take after this operation. The changes will be applied to the passed image instance. Every row is iterated in a separate goroutine.
Deprecated: Use ParallelReadWrite instead.
func ParallelRowReadWriteE
deprecated
func ParallelRowReadWriteE(i draw.Image, a ReadWriteAccessE) error
Perform parallel reading and editing of pixels of the passed image. For each pixel, execute the passed access function allowing to read the color and coordinates, which will return the color that the pixel should take after this operation. The changes will be applied to the passed image instance. Every row is iterated in a separate goroutine. Errors that occur in the function will be caught and the first one will be returned by the function.
Deprecated: Use ParallelReadWriteE instead.
func ParallelRowReadWriteNew
deprecated
func ParallelRowReadWriteNew(i image.Image, a ReadWriteAccess) image.Image
Perform parallel reading and editing of pixels of the passed image. For each pixel, execute the passed access function allowing to read the color and coordinates, which will return the color that the pixel should take after this operation. The changes will be applied to a new image instance returned from this function. Every row is iterated in a separate goroutine.
Deprecated: Use ParallelReadWriteNew instead.
func ParallelRowReadWriteNewE
deprecated
Perform parallel reading and editing of pixels of the passed image. For each pixel, execute the passed access function allowing to read the color and coordinates, which will return the color that the pixel should take after this operation. The changes will be applied to a new image instance returned from this function. Every row is iterated in a separate goroutine. Errors that occur in the function will be caught and the first one will be returned by the function.
Deprecated: Use ParallelReadWriteNewE instead.
Types ¶
type IndicesAccess ¶ added in v0.1.0
type IndicesAccess = func(xIndex, yIndex int)
Iteration access function. Allows you to read the coordinates.
type IndicesDelegate ¶ added in v0.2.0
type IndicesDelegate = func(x, y int)
type NrgbaReadDelegate ¶ added in v0.2.0
type NrgbaReadErrorableDelegate ¶ added in v0.2.0
type NrgbaReadWriteDelegate ¶ added in v0.2.0
type NrgbaReadWriteErrorableDelegate ¶ added in v0.2.0
type ReadAccess ¶
Iteration access function. Allows you to read the coordinates of a pixel and its color.
type ReadAccessE ¶
Iteration access function. Allows you to read the coordinates of a pixel and its color. Errors can be passed down to the iterator.
type ReadColorAccess ¶
Iteration access function. Allows you to read the pixel color.
type ReadColorAccessE ¶
Iteration access function. Allows you to read the pixel color. Errors can be passed down to the iterator.
type ReadDelegate ¶ added in v0.2.0
type ReadErrorableDelegate ¶ added in v0.2.0
type ReadWriteAccess ¶
Iteration access function. Allows you to read the coordinates of a pixel and its color. Returns the color to be set.
type ReadWriteAccessE ¶
Iteration access function. Allows you to read the coordinates of a pixel and its color. Returns the color to be set. Errors can be passed down to the iterator.
type ReadWriteColorAccess ¶
Iteration access function. Allows you to read the pixel color. Returns the color to be set.
type ReadWriteColorAccessE ¶
Iteration access function. Allows you to read the pixel color. Returns the color to be set. Errors can be passed down to the iterator.