Class GifFrameBlock
ชื่อพื้นที่: Aspose.Imaging.FileFormats.Gif.Blocks การประกอบ: Aspose.Imaging.dll (25.4.0)
ประเภท GIF Frame
[JsonObject(MemberSerialization.OptIn)]
public sealed class GifFrameBlock : RasterCachedImage, IDisposable, IObjectWithBounds, IRasterImageArgb32PixelLoader, IRasterImageRawDataLoader, IHasXmpData, IHasMetadata, IGifBlock, IAnimationFrame
Inheritance
object ← DisposableObject ← DataStreamSupporter ← Image ← RasterImage ← RasterCachedImage ← GifFrameBlock
Implements
IDisposable , IObjectWithBounds , IRasterImageArgb32PixelLoader , IRasterImageRawDataLoader , IHasXmpData , IHasMetadata , IGifBlock , IAnimationFrame
อนุญาโตตุลาการ
RasterCachedImage.CacheData() , RasterCachedImage.Blend(Point, RasterImage, Rectangle, byte) , RasterCachedImage.Resize(int, int, ResizeType) , RasterCachedImage.Resize(int, int, ImageResizeSettings) , RasterCachedImage.RotateFlip(RotateFlipType) , RasterCachedImage.Rotate(float, bool, Color) , RasterCachedImage.Crop(Rectangle) , RasterCachedImage.Dither(DitheringMethod, int, IColorPalette) , RasterCachedImage.Grayscale() , RasterCachedImage.NormalizeHistogram() , RasterCachedImage.BinarizeFixed(byte) , RasterCachedImage.BinarizeOtsu() , RasterCachedImage.BinarizeBradley(double, int) , RasterCachedImage.BinarizeBradley(double) , RasterCachedImage.AdjustBrightness(int) , RasterCachedImage.AdjustContrast(float) , RasterCachedImage.AdjustGamma(float, float, float) , RasterCachedImage.AdjustGamma(float) , RasterCachedImage.IsCached , RasterImage.RemoveMetadata() , RasterImage.Save(Stream, ImageOptionsBase, Rectangle) , RasterImage.GetModifyDate(bool) , RasterImage.Dither(DitheringMethod, int) , RasterImage.Dither(DitheringMethod, int, IColorPalette) , RasterImage.GetDefaultPixels(Rectangle, IPartialArgb32PixelLoader) , RasterImage.GetDefaultRawData(Rectangle, IPartialRawDataLoader, RawDataSettings) , RasterImage.GetDefaultArgb32Pixels(Rectangle) , RasterImage.GetDefaultRawData(Rectangle, RawDataSettings) , RasterImage.GetArgb32Pixel(int, int) , RasterImage.GetPixel(int, int) , RasterImage.SetArgb32Pixel(int, int, int) , RasterImage.SetPixel(int, int, Color) , RasterImage.ReadScanLine(int) , RasterImage.ReadArgb32ScanLine(int) , RasterImage.WriteScanLine(int, Color[]) , RasterImage.WriteArgb32ScanLine(int, int[]) , RasterImage.LoadPartialArgb32Pixels(Rectangle, IPartialArgb32PixelLoader) , RasterImage.LoadPartialPixels(Rectangle, IPartialPixelLoader) , RasterImage.LoadArgb32Pixels(Rectangle) , RasterImage.LoadArgb64Pixels(Rectangle) , RasterImage.LoadPartialArgb64Pixels(Rectangle, IPartialArgb64PixelLoader) , RasterImage.LoadPixels(Rectangle) , RasterImage.LoadCmykPixels(Rectangle) , RasterImage.LoadCmyk32Pixels(Rectangle) , RasterImage.LoadRawData(Rectangle, RawDataSettings, IPartialRawDataLoader) , RasterImage.LoadRawData(Rectangle, Rectangle, RawDataSettings, IPartialRawDataLoader) , RasterImage.SaveRawData(byte[], int, Rectangle, RawDataSettings) , RasterImage.SaveArgb32Pixels(Rectangle, int[]) , RasterImage.SavePixels(Rectangle, Color[]) , RasterImage.SaveCmykPixels(Rectangle, CmykColor[]) , RasterImage.SaveCmyk32Pixels(Rectangle, int[]) , RasterImage.SetResolution(double, double) , RasterImage.SetPalette(IColorPalette, bool) , RasterImage.Resize(int, int, ImageResizeSettings) , RasterImage.Rotate(float, bool, Color) , RasterImage.Rotate(float) , RasterImage.BinarizeFixed(byte) , RasterImage.BinarizeOtsu() , RasterImage.BinarizeBradley(double) , RasterImage.BinarizeBradley(double, int) , RasterImage.Blend(Point, RasterImage, Rectangle, byte) , RasterImage.Blend(Point, RasterImage, byte) , RasterImage.Grayscale() , RasterImage.NormalizeHistogram() , RasterImage.AdjustBrightness(int) , RasterImage.AdjustContrast(float) , RasterImage.AdjustGamma(float, float, float) , RasterImage.AdjustGamma(float) , RasterImage.GetSkewAngle() , RasterImage.NormalizeAngle() , RasterImage.NormalizeAngle(bool, Color) , RasterImage.Filter(Rectangle, FilterOptionsBase) , RasterImage.ReplaceColor(Color, byte, Color) , RasterImage.ReplaceColor(int, byte, int) , RasterImage.ReplaceNonTransparentColors(Color) , RasterImage.ReplaceNonTransparentColors(int) , RasterImage.ToBitmap() , RasterImage.PremultiplyComponents , RasterImage.UseRawData , RasterImage.UpdateXmpData , RasterImage.XmpData , RasterImage.RawIndexedColorConverter , RasterImage.RawCustomColorConverter , RasterImage.RawFallbackIndex , RasterImage.RawDataSettings , RasterImage.UsePalette , RasterImage.RawDataFormat , RasterImage.RawLineSize , RasterImage.IsRawDataAvailable , RasterImage.HorizontalResolution , RasterImage.VerticalResolution , RasterImage.HasTransparentColor , RasterImage.HasAlpha , RasterImage.TransparentColor , RasterImage.ImageOpacity , Image.CanLoad(string) , Image.CanLoad(string, LoadOptions) , Image.CanLoad(Stream) , Image.CanLoad(Stream, LoadOptions) , Image.Create(ImageOptionsBase, int, int) , Image.Create(Image[]) , Image.Create(MultipageCreateOptions) , Image.Create(string[], bool) , Image.Create(string[]) , Image.Create(Image[], bool) , Image.GetFileFormat(string) , Image.GetFileFormat(Stream) , Image.GetFittingRectangle(Rectangle, int, int) , Image.GetFittingRectangle(Rectangle, int[], int, int) , Image.Load(string, LoadOptions) , Image.Load(string) , Image.Load(Stream, LoadOptions) , Image.Load(Stream) , Image.GetProportionalWidth(int, int, int) , Image.GetProportionalHeight(int, int, int) , Image.RemoveMetadata() , Image.CanSave(ImageOptionsBase) , Image.Resize(int, int) , Image.Resize(int, int, ResizeType) , Image.Resize(int, int, ImageResizeSettings) , Image.GetDefaultOptions(object[]) , Image.GetOriginalOptions() , Image.ResizeWidthProportionally(int) , Image.ResizeHeightProportionally(int) , Image.ResizeWidthProportionally(int, ResizeType) , Image.ResizeHeightProportionally(int, ResizeType) , Image.ResizeWidthProportionally(int, ImageResizeSettings) , Image.ResizeHeightProportionally(int, ImageResizeSettings) , Image.RotateFlip(RotateFlipType) , Image.Rotate(float) , Image.Crop(Rectangle) , Image.Crop(int, int, int, int) , Image.Save() , Image.Save(string) , Image.Save(string, ImageOptionsBase) , Image.Save(string, ImageOptionsBase, Rectangle) , Image.Save(Stream, ImageOptionsBase) , Image.Save(Stream, ImageOptionsBase, Rectangle) , Image.GetSerializedStream(ImageOptionsBase, Rectangle, out int) , Image.SetPalette(IColorPalette, bool) , Image.BitsPerPixel , Image.Bounds , Image.Container , Image.Height , Image.Palette , Image.UsePalette , Image.Size , Image.Width , Image.InterruptMonitor , Image.BufferSizeHint , Image.AutoAdjustPalette , Image.HasBackgroundColor , Image.FileFormat , Image.BackgroundColor , DataStreamSupporter.CacheData() , DataStreamSupporter.Save() , DataStreamSupporter.Save(Stream) , DataStreamSupporter.Save(string) , DataStreamSupporter.Save(string, bool) , DataStreamSupporter.DataStreamContainer , DataStreamSupporter.IsCached , DisposableObject.Dispose() , DisposableObject.Disposed , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
GifFrameBlock(โชว์, โชว์)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock
public GifFrameBlock(ushort width, ushort height)
Parameters
width
ushort
ความกว้างของภาพ
height
ushort
ความสูงของภาพ
Examples
ตัวอย่างนี้แสดงให้เห็นวิธีการสร้างภาพ GIF และบันทึกไว้ในไฟล์
string dir = "c:\\temp\\";
// Create a GIF Frame block of 100x100 px.
using (Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock firstBlock = new Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock(100, 100))
{
// Fill the entire block in red.
Aspose.Imaging.Graphics gr = new Aspose.Imaging.Graphics(firstBlock);
Aspose.Imaging.Brushes.SolidBrush brush = new Aspose.Imaging.Brushes.SolidBrush(Aspose.Imaging.Color.Red);
gr.FillRectangle(brush, firstBlock.Bounds);
using (Aspose.Imaging.FileFormats.Gif.GifImage gifImage = new Aspose.Imaging.FileFormats.Gif.GifImage(firstBlock))
{
gifImage.Save(dir + "output.gif");
}
}
ตัวอย่างนี้แสดงให้เห็นวิธีการสร้างภาพ GIF ด้วยแพลตฟอร์มที่กําหนดเองและบันทึกไว้ในไฟล์
string dir = "c:\\temp\\";
// Create a GIF Frame block of 100x100 px.
using (Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock firstBlock = new Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock(100, 100))
{
// Fill the entire block in red.
Aspose.Imaging.Graphics gr = new Aspose.Imaging.Graphics(firstBlock);
Aspose.Imaging.Brushes.SolidBrush brush = new Aspose.Imaging.Brushes.SolidBrush(Aspose.Imaging.Color.Red);
gr.FillRectangle(brush, firstBlock.Bounds);
// Use 4-bit palette to reduce the image size. The quality can get worse.
Aspose.Imaging.IColorPalette palette = Aspose.Imaging.ColorPaletteHelper.Create4Bit();
using (Aspose.Imaging.FileFormats.Gif.GifImage gifImage = new Aspose.Imaging.FileFormats.Gif.GifImage(firstBlock, palette))
{
gifImage.Save(dir + "output.gif");
}
}
ตัวอย่างต่อไปนี้แสดงให้เห็นวิธีการประกอบภาพ GIF ที่เคลื่อนไหวจากบล็อก GIF แต่ละตัว
string dir = "c:\\temp\\";
// Create a GIF image 100 x 100 px.
// The first block is fully black by default.
using (Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock firstBlock = new Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock(100, 100))
using (Aspose.Imaging.FileFormats.Gif.GifImage gifImage = new Aspose.Imaging.FileFormats.Gif.GifImage(firstBlock))
{
// The first circle is red
Aspose.Imaging.Brushes.SolidBrush brush1 = new Aspose.Imaging.Brushes.SolidBrush(Aspose.Imaging.Color.Red);
// The second circle is black
Aspose.Imaging.Brushes.SolidBrush brush2 = new Aspose.Imaging.Brushes.SolidBrush(Aspose.Imaging.Color.Black);
// Gradually inscrease the angle of the red arc shape.
for (int angle = 10; angle <= 360; angle += 10)
{
Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock block = new Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock(100, 100);
Aspose.Imaging.Graphics gr = new Aspose.Imaging.Graphics(block);
gr.FillPie(brush1, block.Bounds, 0, angle);
gifImage.AddBlock(block);
}
// Gradually inscrease the angle of the black arc and wipe out the red arc.
for (int angle = 10; angle <= 360; angle += 10)
{
Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock block = new Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock(100, 100);
Aspose.Imaging.Graphics gr = new Aspose.Imaging.Graphics(block);
gr.FillPie(brush2, block.Bounds, 0, angle);
gr.FillPie(brush1, block.Bounds, angle, 360 - angle);
gifImage.AddBlock(block);
}
gifImage.Save(dir + "animated_radar.gif");
}
GifFrameBlock(ushort, ushort, ushort, ushort)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock
public GifFrameBlock(ushort left, ushort top, ushort width, ushort height)
Parameters
left
ushort
ตําแหน่งภาพด้านซ้าย
top
ushort
ตําแหน่งภาพด้านบน
width
ushort
ความกว้างของภาพ
height
ushort
ความสูงของภาพ
GifFrameBlock(ushort, ushort, ushort, ushort, IColorPalette, bool, bool, byte)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock
public GifFrameBlock(ushort left, ushort top, ushort width, ushort height, IColorPalette colorPalette, bool isPaletteSorted, bool isGifFrameInterlaced, byte bitsPerPixel)
Parameters
left
ushort
ตําแหน่งภาพด้านซ้าย
top
ushort
ตําแหน่งภาพด้านบน
width
ushort
ความกว้างของภาพ
height
ushort
ความสูงของภาพ
colorPalette
IColorPalette
แผ่นสี
isPaletteSorted
bool
ถ้าตั้งค่าเป็น “จริง” แพลิเคชันสีจะจัดอันดับ
isGifFrameInterlaced
bool
ถ้าตั้งค่าเป็น “จริง” กรอบ GIF จะถูกเชื่อมต่อ
bitsPerPixel
byte
บิตต่อพิกเซล
GifFrameBlock(RasterImage)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock
public GifFrameBlock(RasterImage image)
Parameters
image
RasterImage
รูปภาพเพื่อเริ่มต้นการกรอบ pixel และข้อมูลแพลตฟอร์มด้วย
GifFrameBlock(RasterImage, ushort, ushort)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock
public GifFrameBlock(RasterImage image, ushort left, ushort top)
Parameters
image
RasterImage
รูปภาพเพื่อเริ่มต้นการกรอบ pixel และข้อมูลแพลตฟอร์มด้วย
left
ushort
ตําแหน่งภาพด้านซ้าย
top
ushort
ตําแหน่งภาพด้านบน
GifFrameBlock(RasterImage, ushort, ushort, bool, bool, byte)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock
public GifFrameBlock(RasterImage image, ushort left, ushort top, bool isPaletteSorted, bool isGifFrameInterlaced, byte lzwCodeSize)
Parameters
image
RasterImage
รูปภาพเพื่อเริ่มต้นการกรอบ pixel และข้อมูลแพลตฟอร์มด้วย
left
ushort
ตําแหน่งภาพด้านซ้าย
top
ushort
ตําแหน่งภาพด้านบน
isPaletteSorted
bool
ถ้าตั้งค่าเป็น “จริง” แพลิเคชันสีจะจัดอันดับ
isGifFrameInterlaced
bool
ถ้าตั้งค่าเป็น “จริง” กรอบ GIF จะถูกเชื่อมต่อ
lzwCodeSize
byte
บิตต่อพิกเซล
GifFrameBlock(Stream)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock
public GifFrameBlock(Stream stream)
Parameters
stream
Stream
กระแสที่จะโหลดภาพจากและเริ่มต้นการกรอบพิกเซลและข้อมูลแพลตฟอร์ม
GifFrameBlock(กระแส, ushort, ushort)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock
public GifFrameBlock(Stream stream, ushort left, ushort top)
Parameters
stream
Stream
กระแสที่จะโหลดภาพจากและเริ่มต้นการกรอบพิกเซลและข้อมูลแพลตฟอร์ม
left
ushort
ตําแหน่งภาพด้านซ้าย
top
ushort
ตําแหน่งภาพด้านบน
GifFrameBlock(กระแส, ushort, ushort, bool, bool, byte)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock
public GifFrameBlock(Stream stream, ushort left, ushort top, bool isPaletteSorted, bool isGifFrameInterlaced, byte lzwCodeSize)
Parameters
stream
Stream
กระแสที่จะโหลดภาพจากและเริ่มต้นการกรอบพิกเซลและข้อมูลแพลตฟอร์ม
left
ushort
ตําแหน่งภาพด้านซ้าย
top
ushort
ตําแหน่งภาพด้านบน
isPaletteSorted
bool
ถ้าตั้งค่าเป็น “จริง” แพลิเคชันสีจะจัดอันดับ
isGifFrameInterlaced
bool
ถ้าตั้งค่าเป็น “จริง” กรอบ GIF จะถูกเชื่อมต่อ
lzwCodeSize
byte
บิตต่อพิกเซล
GifFrameBlock(รั้ว)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock
public GifFrameBlock(string path)
Parameters
path
string
เส้นทางในการโหลดภาพจากและเริ่มต้นการกรอบพิกเซลและแพลตข้อมูลด้วย
GifFrameBlock(ก้น, ushort, ushort)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock
public GifFrameBlock(string path, ushort left, ushort top)
Parameters
path
string
เส้นทางในการโหลดภาพจากและเริ่มต้นการกรอบพิกเซลและแพลตข้อมูลด้วย
left
ushort
ตําแหน่งภาพด้านซ้าย
top
ushort
ตําแหน่งภาพด้านบน
GifFrameBlock(ลวด, ushort, ushort, bool, bool, byte)
เปิดตัวตัวอย่างใหม่ของคลาส Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock
public GifFrameBlock(string path, ushort left, ushort top, bool isPaletteSorted, bool isGifFrameInterlaced, byte lzwCodeSize)
Parameters
path
string
เส้นทางในการโหลดภาพจากและเริ่มต้นการกรอบพิกเซลและแพลตข้อมูลด้วย
left
ushort
ตําแหน่งภาพด้านซ้าย
top
ushort
ตําแหน่งภาพด้านบน
isPaletteSorted
bool
ถ้าตั้งค่าเป็น “จริง” แพลิเคชันสีจะจัดอันดับ
isGifFrameInterlaced
bool
ถ้าตั้งค่าเป็น “จริง” กรอบ GIF จะถูกเชื่อมต่อ
lzwCodeSize
byte
บิตต่อพิกเซล
Fields
ExtensionLabel
แท็กขยายบล็อก
public const int ExtensionLabel = 44
หมายเลข
ImageDescriptorSize
ขนาดตัวอธิบายภาพ
public const int ImageDescriptorSize = 10
หมายเลข
Properties
BackgroundColor
รับหรือตั้งค่าสําหรับสีพื้นหลัง
public override Color BackgroundColor { get; set; }
คุณสมบัติมูลค่า
BitsPerPixel
รับภาพบิตต่อพิกเซลคํานวณ
public override int BitsPerPixel { get; }
คุณสมบัติมูลค่า
ControlBlock
รับบล็อกการควบคุมกราฟิกที่เกี่ยวข้องกับบล็อกนี้
public GifGraphicsControlBlock ControlBlock { get; }
คุณสมบัติมูลค่า
DisposalMethod
ได้รับวิธีการจัดเก็บ
public AnimationDisposalMethods DisposalMethod { get; }
คุณสมบัติมูลค่า
FileFormat
ได้รับค่าของรูปแบบไฟล์
public override FileFormat FileFormat { get; }
คุณสมบัติมูลค่า
Flags
รับหรือวางกระดาษ
public byte Flags { get; set; }
คุณสมบัติมูลค่า
FrameLeft
ได้รับด้านซ้าย
public int FrameLeft { get; }
คุณสมบัติมูลค่า
FrameTime
รับหรือตั้งค่าระยะเวลา
public int FrameTime { get; set; }
คุณสมบัติมูลค่า
FrameTop
แปลงเป็น p
public int FrameTop { get; }
คุณสมบัติมูลค่า
GifFrameBitsPerPixel
รับหรือตั้งค่า GIF frame bits per pixel
public byte GifFrameBitsPerPixel { get; set; }
คุณสมบัติมูลค่า
HasTransparentColor
ได้รับค่าแสดงให้เห็นว่ากรอบบล็อกมีสีโปร่งใสหรือไม่
public override bool HasTransparentColor { get; set; }
คุณสมบัติมูลค่า
Height
ได้รับความสูงของภาพ
public override int Height { get; }
คุณสมบัติมูลค่า
Interlaced
รับหรือตั้งค่าหมายความว่า Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock นี้จะถูกเชื่อมต่อหรือไม่
public bool Interlaced { get; set; }
คุณสมบัติมูลค่า
IsInterlaced
ได้รับค่าแสดงให้เห็นว่าตัวอย่างภาพนี้มีการเชื่อมต่อหรือไม่
public bool IsInterlaced { get; }
คุณสมบัติมูลค่า
IsPaletteSorted
รับหรือตั้งค่าหมายความว่าสีแพลตฟอร์มจะจัดอันดับหรือไม่
public bool IsPaletteSorted { get; set; }
คุณสมบัติมูลค่า
Left
รับหรือตั้งตําแหน่งของภาพด้านซ้าย
[JsonProperty]
public ushort Left { get; set; }
คุณสมบัติมูลค่า
Top
รับหรือตั้งตําแหน่งภาพด้านบน
[JsonProperty]
public ushort Top { get; set; }
คุณสมบัติมูลค่า
TransparentColor
ได้รับสีโปร่งใสของกรอบบล็อก
public override Color TransparentColor { get; set; }
คุณสมบัติมูลค่า
UseAlphaBlending
ได้รับค่าที่แสดงให้เห็นว่า [ใช้อัลฟาผสม]
public bool UseAlphaBlending { get; }
คุณสมบัติมูลค่า
Width
รับภาพกว้าง
public override int Width { get; }
คุณสมบัติมูลค่า
Methods
AdjustBrightness(int)
การปรับความสว่างสําหรับภาพ
public override void AdjustBrightness(int brightness)
Parameters
brightness
int
ความสว่าง
CreateFlags(IColorPalette, บอล, บอล)
สร้างกระดาษ
public static byte CreateFlags(IColorPalette colorPalette, bool isPaletteSorted, bool isGifFrameInterlaced)
Parameters
colorPalette
IColorPalette
แผ่นสี
isPaletteSorted
bool
ถ้าตั้งค่าเป็น “จริง” สีในสีแพลตฟอร์มจะจัดอันดับ
isGifFrameInterlaced
bool
ถ้าตั้งค่าเป็น “จริง” ภาพกรอบ GIF จะถูกเชื่อมต่อ
Returns
ปลั๊กที่สร้างขึ้น
GetColorPalette(IColorPalette, IColorPalette)
รับสีที่เชื่อมต่อ
public static IColorPalette GetColorPalette(IColorPalette framePalette, IColorPalette containerPalette)
Parameters
framePalette
IColorPalette
แผ่นกรอบ
containerPalette
IColorPalette
แผ่นคอนเทนเนอร์
Returns
แผ่นสี
GetFullFrame()
รับกรอบเต็ม
public RasterImage GetFullFrame()
Returns
เขา RasterImage ด้วยกรอบเต็ม
Exceptions
GetOriginalOptions()
รับตัวเลือกตามการตั้งค่าไฟล์เดิมนี่อาจเป็นประโยชน์ในการรักษาความลึกและพารามิเตอร์อื่น ๆ ของภาพเดิมไม่เปลี่ยนแปลงตัวอย่างเช่นถ้าเราโหลดภาพ PNG สีดําและสีขาวด้วย 1 บิตต่อพิกเซลแล้วบันทึกมันโดยใช้Aspose.Imaging.DataStreamSupporter.Save(System.String) วิธีการภาพ PNG output กับ 8 บิตต่อพิกเซลจะผลิตเพื่อหลีกเลี่ยงและบันทึกภาพ PNG ด้วย 1 บิตต่อพิกเซลใช้วิธีการนี้เพื่อรับตัวเลือกการบันทึกที่เหมาะสมและผ่านพวกเขาวิธีการ Aspose.Imaging.Image.Save(System.String,Aspose.Imaging.ImageOptionsBase) เป็นพารามิเตอร์ที่สอง
public override ImageOptionsBase GetOriginalOptions()
Returns
ตัวเลือกตามการตั้งค่าไฟล์เดิม
OnPaletteChanged(IColorPalette, IColorPalette)
โทรเมื่อแพลตฟอร์มมีการเปลี่ยนแปลง
protected override void OnPaletteChanged(IColorPalette oldPalette, IColorPalette newPalette)
Parameters
oldPalette
IColorPalette
แพลิเคชันเก่า
newPalette
IColorPalette
แพลิเคชันใหม่
OnPaletteChanging(IColorPalette, IColorPalette)
การเรียกเมื่อแพลตฟอร์มจะเปลี่ยนแปลง
protected override void OnPaletteChanging(IColorPalette oldPalette, IColorPalette newPalette)
Parameters
oldPalette
IColorPalette
แพลิเคชันเก่า
newPalette
IColorPalette
แพลิเคชันใหม่
ReplaceColor(int, byte, int)
เปลี่ยนสีหนึ่งกับสีอื่น ๆ ด้วยความแตกต่างที่อนุญาตและรักษาค่าอัลฟาเดิมเพื่อบันทึกขอบเรียบ
public override void ReplaceColor(int oldColorArgb, byte oldColorDiff, int newColorArgb)
Parameters
oldColorArgb
int
สีเก่า ARGB หมายเลขจะถูกแทนที่
oldColorDiff
byte
อนุญาตให้แตกต่างในสีเก่าเพื่อให้สามารถขยายสีที่ถูกแทนที่
newColorArgb
int
สีใหม่ค่า ARGB เพื่อเปลี่ยนสีเก่าด้วย
ReplaceNonTransparentColors(int)
เปลี่ยนสีที่ไม่โปร่งใสทั้งหมดด้วยสีใหม่และรักษาค่าอัลฟาเดิมเพื่อบันทึกขอบเรียบหมายเหตุ: หากคุณใช้ภาพโดยไม่มีความโปร่งใสสีทั้งหมดจะถูกแทนที่ด้วยสีเดียว
public override void ReplaceNonTransparentColors(int newColorArgb)
Parameters
newColorArgb
int
สีใหม่ค่า ARGB เพื่อแทนที่สีที่ไม่โปร่งใสด้วย
Resize(int, int, ImageResizeSettings)
แก้ไขตัวอย่างนี้ Aspose.Imaging.RasterCachedImage
public override void Resize(int newWidth, int newHeight, ImageResizeSettings imageResizeSettings)
Parameters
newWidth
int
ความกว้างใหม่
newHeight
int
ความสูงใหม่
imageResizeSettings
ImageResizeSettings
รีไซเคิล
SaveData(Stream)
เก็บข้อมูล
protected override void SaveData(Stream stream)
Parameters
stream
Stream
กระแสเพื่อบันทึกข้อมูล
UpdateDimensions(int, int)
ปรับปรุงขนาดภาพ
protected override void UpdateDimensions(int newWidth, int newHeight)
Parameters
newWidth
int
ความกว้างของภาพใหม่
newHeight
int
ความสูงของภาพใหม่