some improvments
This commit is contained in:
@@ -157,7 +157,6 @@ func (im *Image) ToGoImage() (goimage.Image, error) {
|
||||
aidx := 0
|
||||
|
||||
samples := im.GetSamples()
|
||||
//bytesPerColor := colorComponents * int(this.BitsPerComponent) / 8
|
||||
bytesPerColor := im.ColorComponents
|
||||
for i := 0; i+bytesPerColor-1 < len(samples); i += bytesPerColor {
|
||||
var c gocolor.Color
|
||||
|
||||
Reference in New Issue
Block a user