Make the background of a 8-bit monchrome gray image be transparent
Background I have created an 8-bit monochrome Gray image drawn a closed path on it and then filled the closed path with pixels having a 0x44 value. The code is below. import ( “image” “app/slicer/renderer/gray/drawgray” ) // Initialize the graphic context on a gray image dest := image.NewGray(image.Rect(0, 0, 297, 210.0)) gc := drawgray.NewGraphicContext(dest) // […]