-3

This is the code:

using (backbuffer = D3Ddev.GetBackBuffer(0, 0, BackBufferType.Mono))
            {
                using (g = backbuffer.GetGraphics())
                {
                    g.SmoothingMode = SmoothingMode.AntiAlias;

                    g.FillPie(myBrush, 256F - distanceFromCenterPixels, 255F - distanceFromCenterPixels,
                    distanceFromCenterPixels * 2F, distanceFromCenterPixels * 2F, angleF - 23F, 46F);
                    if (angleF < 360)
                        g.(@"c:\coneimages\" + angleF + ".gif");
                }
            }

g.Save is not the right way. But somehow i want to save the Pie the FillPie as gif file on the hard disk.

Helem Shoshi
  • 239
  • 1
  • 3
  • 14
  • What do you mean `g.Save()` is not the right way? You may need to consider your color palette if it's only a GIF you need. PNG is easier to deal with – geedubb Feb 09 '15 at 18:31
  • I need gif. I mean that g.Save() does nothing i need it will not save it as gif on the hard disk in the location i wanted. Anyway g.Save() is not the solution. – Helem Shoshi Feb 09 '15 at 18:33
  • D3Ddev is part of directx. It's DirectX.Direct3D.Device – Helem Shoshi Feb 09 '15 at 19:50

1 Answers1

-3

Check this class out: Image.Save

And check out this post describing how to convert Graphics to an Image. convert Graphics to Image in c#

Community
  • 1
  • 1
Jeremy
  • 4,808
  • 2
  • 21
  • 24