|
Now we color reduce the canvas down to 32 colors using an ImageGlue
adaptive palette. We then copy the canvas into the GDI+ Bitmap and
export it again.
[Visual Basic]
ca.ReduceColors("adaptive", 25, true)
bm = ImageCopy.MakeBitmap(ca)
bm.Save(Server.MapPath("astro2.gif"), ImageFormat.Gif)
[C#]
ca.ReduceColors("adaptive", 25, true);
bm = ImageCopy.MakeBitmap(ca);
bm.Save(Server.MapPath("astro2.gif"), ImageFormat.Gif);
|