Get Frame From AnyBitmap
This feature enables users to extract or capture frames from a multipage GIF or TIFF file and save them locally in any image format. The saved frames can be further manipulated in IronDrawing or other Iron Software tools as users desire.
To use this feature, users must first convert the GIF or TIFF file into an AnyBitmap
type by loading it from a file path using the AnyBitmap.FromFile(@"FILE_PATH")
method. If users want to save an individual frame and know the index number of that frame, the .GetAllFrames().ElementAt(n).SaveAs("FRAME_FILE_NAME")
method can be used. To get the first and last frames, simply use the .First()
and .Last()
methods accordingly. If users wish to save all frames according to the frame number, they can use a for
loop on the frames saved in a list and use frames[i].SaveAs("frame_" + i + ".jpg")
.