public class GIF
Public Class GIF
Dim instance As GIF
public ref class GIF
type GIF = class end
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
Dim pcb As PictureBox = Me.PictureBox1
Dim gif As New GIF("C:\File.gif")
Do Until gif.EndOfFrames ' Iterate frames until the end of frame count.
' Free previous Bitmap object.
If (pcb.Image IsNot Nothing) Then
pcb.Image.Dispose()
pcb.Image = Nothing
End If
pcb.Image = gif.NextFrame()
Thread.Sleep(60) ' Simulate the FPS animation.
Application.DoEvents()
If (gif.EndOfFrames) Then
' Set active frame to 0 for infinite loop:
gif.ActiveFrameIndex = 0
End If
Loop
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
GIF(FileInfo) | Initializes a new instance of the GIF class. |
GIF(Image) | Initializes a new instance of the GIF class. |
GIF(String) | Initializes a new instance of the GIF class. |
ActiveFrame | Gets the active frame. |
ActiveFrameIndex | Gets the index in the frame count of the current active frame. |
EndOfFrames | Gets a value indicating whether the frame count is at EOF, this means there is no more frames to advance in the GIF image. |
FrameCount | Gets the frame count of the GIF image. |
Frames | Gets the frame at the specified index. |
Image | Gets the GIF image. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetFrames | Gets a ListT containing all the frames in the image. |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
NextFrame | Advances one position in the frame count and returns the next frame. |
ToString | Returns a string that represents the current object. (Inherited from Object) |
CanConvertTo |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
CanConvertToT |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions) |
IsDisposable |
Determines whether the specified object is a disposable type
(i.e., it implements IDisposable interface).
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
ThrowIfNullTException |
Throws the specified exception if the source object is null.
(Defined by ObjectExtensions) |