How to create an RGB image (not RGBA)?

How to create an RGB image (not RGBA)? I decided to learn golang for image processing. but I saw that only RGBA can be created and I am confused. Why is there no NewRGB function? I want to write PNG image without alpha channel.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.