package main import ( "image" "image/color" "image/draw" "image/png" "os" ) func main() { // Create an image with bounds of 320x240 img := image.NewRGBA(image.Rect(0, 0, 320, 240)) // Set the whole image to a blue color draw.Draw(img, img.Bounds(), &image.Uniform{color.RGBA{0, 0, 255, 255}}, image.Point{}, draw.Src) // Get the bounds of the image bounds := img.Bounds() // Print the bounds println("Image bounds:", bounds) // Save the image to a file f, err := os.Create("example.png") if err != nil { panic(err) } defer f.Close() png.Encode(f, img) }In this example, we create a new image with a size of 320x240 and fill it with a blue color using the draw.Draw() function. We then use the Image.Bounds() function to get the bounds of the image and print them out. Finally, we save the image to a PNG file. The package library used in this example is the "image/draw" package.