go.image
1.23.1.5
dotnet add package go.image --version 1.23.1.5
NuGet\Install-Package go.image -Version 1.23.1.5
<PackageReference Include="go.image" Version="1.23.1.5" />
<PackageVersion Include="go.image" Version="1.23.1.5" />
<PackageReference Include="go.image" />
paket add go.image --version 1.23.1.5
#r "nuget: go.image, 1.23.1.5"
#:package go.image@1.23.1.5
#addin nuget:?package=go.image&version=1.23.1.5
#tool nuget:?package=go.image&version=1.23.1.5
go.image
C# package converted from the Go standard library by go2cs.
Package image implements a basic 2-D image library.
The fundamental interface is called [Image]. An [Image] contains colors, which are described in the image/color package.
Values of the [Image] interface are created either by calling functions such as [NewRGBA] and [NewPaletted], or by calling [Decode] on an io.Reader containing image data in a format such as GIF, JPEG or PNG. Decoding any particular image format requires the prior registration of a decoder function. Registration is typically automatic as a side effect of initializing that format's package so that, to decode a PNG image, it suffices to have
import _ "image/png"
in a program's main package. The _ means to import a package purely for its initialization side effects.
See "The Go image package" for more details: https://golang.org/doc/articles/image_package.html
Security Considerations
The image package can be used to parse arbitrarily large images, which can cause resource exhaustion on machines which do not have enough memory to store them. When operating on arbitrary images, [DecodeConfig] should be called before [Decode], so that the program can decide whether the image, as defined in the returned header, can be safely decoded with the available resources. A call to [Decode] which produces an extremely large image, as defined in the header returned by [DecodeConfig], is not considered a security issue, regardless of whether the image is itself malformed or not. A call to [DecodeConfig] which returns a header which does not match the image returned by [Decode] may be considered a security issue, and should be reported per the [Go Security Policy](https://go.dev/security/policy).
Copyright 2009 The Go Authors. All rights reserved. This C# package is converted from Go standard library source; use of that source is governed by a BSD-style license that can be found in the LICENSE file. The go2cs conversion itself is distributed under the MIT license.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- go.bufio (>= 1.23.1.5)
- go.errors (>= 1.23.1.5)
- go.image.color (>= 1.23.1.5)
- go.io (>= 1.23.1.5)
- go.lib (>= 1.23.1.5)
- go.math.bits (>= 1.23.1.5)
- go.strconv (>= 1.23.1.5)
- go.sync (>= 1.23.1.5)
- go.sync.atomic (>= 1.23.1.5)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on go.image:
| Package | Downloads |
|---|---|
|
go.image.internal.imageutil
image.internal.imageutil (net9.0 - Release) -- C# project converted from Go source |
|
|
go.image.draw
image.draw (net9.0 - Release) -- C# project converted from Go source |
|
|
go.image.png
image.png (net9.0 - Release) -- C# project converted from Go source |
|
|
go.image.jpeg
image.jpeg (net9.0 - Release) -- C# project converted from Go source |
|
|
go.image.gif
image.gif (net9.0 - Release) -- C# project converted from Go source |
GitHub repositories
This package is not used by any popular GitHub repositories.