<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # package png `import "image/png"` png包實現了PNG圖像的編解碼。PNG格式參見:[http://www.w3.org/TR/PNG/](http://www.w3.org/TR/PNG/) ## Index * [type FormatError](#FormatError) * [func (e FormatError) Error() string](#FormatError.Error) * [type UnsupportedError](#UnsupportedError) * [func (e UnsupportedError) Error() string](#UnsupportedError.Error) * [func Decode(r io.Reader) (image.Image, error)](#Decode) * [func DecodeConfig(r io.Reader) (image.Config, error)](#DecodeConfig) * [func Encode(w io.Writer, m image.Image) error](#Encode) ## type [FormatError](https://github.com/golang/go/blob/master/src/image/png/reader.go#L90 "View Source") ``` type FormatError string ``` 當輸入流不是合法的png格式圖像時,就會返回FormatError類型的錯誤。 ### func (FormatError) [Error](https://github.com/golang/go/blob/master/src/image/png/reader.go#L92 "View Source") ``` func (e FormatError) Error() string ``` ## type [UnsupportedError](https://github.com/golang/go/blob/master/src/image/png/reader.go#L97 "View Source") ``` type UnsupportedError string ``` 當輸入流使用了合法但尚不支持的png特性的時候,就會返回UnsupportedError類型的錯誤。 ### func (UnsupportedError) [Error](https://github.com/golang/go/blob/master/src/image/png/reader.go#L99 "View Source") ``` func (e UnsupportedError) Error() string ``` ## func [Decode](https://github.com/golang/go/blob/master/src/image/png/reader.go#L619 "View Source") ``` func Decode(r io.Reader) (image.Image, error) ``` 從r讀取一幅png格式的圖像并解碼返回該圖像。圖像的具體類型要看png文件的內容而定。 ## func [DecodeConfig](https://github.com/golang/go/blob/master/src/image/png/reader.go#L643 "View Source") ``` func DecodeConfig(r io.Reader) (image.Config, error) ``` 返回PNG圖像的色彩模型和尺寸;函數不會解碼整個圖像。 ## func [Encode](https://github.com/golang/go/blob/master/src/image/png/writer.go#L433 "View Source") ``` func Encode(w io.Writer, m image.Image) error ``` 將圖像m以PNG格式寫入w。任意圖像類型都可以被編碼,但image.NRGBA以外格式的圖像可能會在編碼時丟失一些圖像信息。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看