Byte [] imgbyte=File. ReadAllBytes (FileName);
BMP=(Bitmap) Image. FromStream (new MemoryStream (imgbyte));//global BMP bitmap object variable
FrameDimension fd=new FrameDimension (BMP) FrameDimensionsList [0]).
Int count=BMP. GetFrameCount (fd);
Frames=new Bitmap (count);
for (int i=0; I & lt; The count. I++)
{
BMP. SelectActiveFrame (fd, I);
Frames [I]=new Bitmap (BMP) Width, BMP. Height);
Graphics g=Graphics. FromImage (Frames [I]);
G.D rawImage (BMP, new Rectangle (0, 0, BMP. Width, BMP, Height));
}
CodePudding user response:
In dialog, select frame 0 images, for example, is loaded into the main screen, in the main interface to rid the bird belly light yellow parts, when the open dialog box again, frame 0 bird belly corresponding parts have also been removed, but I'm not an array Frames to assignment,