Class GifFrameBlock
이름 공간 : Aspose.Imaging.FileFormats.Gif.Blocks 모임: Aspose.Imaging.dll (25.4.0)
GIF 프레임 클래스
[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(우조르트, 우조르트, 우조르트)
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
그림은 프레임 픽셀과 팔레트 데이터를 시작합니다.
GifFrameBlock(스토리, 스토리, 스토리)
Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock 클래스의 새로운 예를 시작합니다.
public GifFrameBlock(RasterImage image, ushort left, ushort top)
Parameters
image
RasterImage
그림은 프레임 픽셀과 팔레트 데이터를 시작합니다.
left
ushort
왼쪽 이미지 위치
top
ushort
상단 이미지 위치
GifFrameBlock(RasterImage, ushort, ushort, bool, bool, 바이트)
Aspose.Imaging.FileFormats.Gif.Blocks.GifFrameBlock 클래스의 새로운 예를 시작합니다.
public GifFrameBlock(RasterImage image, ushort left, ushort top, bool isPaletteSorted, bool isGifFrameInterlaced, byte lzwCodeSize)
Parameters
image
RasterImage
그림은 프레임 픽셀과 팔레트 데이터를 시작합니다.
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(꼬리, 꼬리, 꼬리)
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 프레임 비트를 얻거나 설정합니다.
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(이트)
이미지에 대한 밝기를 조정합니다.
public override void AdjustBrightness(int brightness)
Parameters
brightness
int
빛의 가치
CreateFlags(바이올린, 바이올린, 바이올린)
깃발을 만들어 낸다.
public static byte CreateFlags(IColorPalette colorPalette, bool isPaletteSorted, bool isGifFrameInterlaced)
Parameters
colorPalette
IColorPalette
색상 팔레트
isPaletteSorted
bool
‘진실’으로 설정하면 색상 패널의 색상이 분류됩니다.
isGifFrameInterlaced
bool
‘진실’으로 설정하면 GIF 프레임 이미지가 연결되어 있습니다.
Returns
창조된 깃발들
GetColorPalette(아이콜라스, 아이콜라스)
관련 색상 패널을 얻습니다.
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 이미지 8 비트 / 픽셀이 생성됩니다.그것을 피하고 픽셀 당 1 비트로 PNG 이미지를 저장하려면이 방법을 사용하여 해당 저장 옵션을 얻고 통과하십시오.Aspose.Imaging.Image.Save(System.String,Aspose.Imaging.ImageOptionsBase) 방법은 두 번째 매개 변수입니다.
public override ImageOptionsBase GetOriginalOptions()
Returns
원본 파일 설정에 기초한 옵션.
OnPaletteChanged(아이콜라스, 아이콜라스)
팔레트가 변경되면 전화를 받습니다.
protected override void OnPaletteChanged(IColorPalette oldPalette, IColorPalette newPalette)
Parameters
oldPalette
IColorPalette
오래된 팔레트
newPalette
IColorPalette
새로운 팔레트
OnPaletteChanging(아이콜라스, 아이콜라스)
팔레트가 바뀌었을 때 전화를 받았습니다.
protected override void OnPaletteChanging(IColorPalette oldPalette, IColorPalette newPalette)
Parameters
oldPalette
IColorPalette
오래된 팔레트
newPalette
IColorPalette
새로운 팔레트
ReplaceColor(이트, 바이트, 이트)
허용되는 차이로 한 색을 다른 색으로 대체하고 원래 알파 값을 유지하여 부드러운 경계를 저장합니다.
public override void ReplaceColor(int oldColorArgb, byte oldColorDiff, int newColorArgb)
Parameters
oldColorArgb
int
오래된 색상 ARGB 값이 대체됩니다.
oldColorDiff
byte
오래된 색상의 차이가 대체 색상 톤을 확장 할 수 있도록 허용되었습니다.
newColorArgb
int
새로운 색상 ARGB 값은 오래된 색상을 대체합니다.
ReplaceNonTransparentColors(이트)
모든 투명하지 않은 색상을 새 색으로 대체하고 원래 알파 값을 유지하여 부드러운 경계를 저장합니다.참고: 투명성이 없는 이미지에서 사용하면 모든 색상이 하나로 대체됩니다.
public override void ReplaceNonTransparentColors(int newColorArgb)
Parameters
newColorArgb
int
새로운 색상 ARGB 값은 투명하지 않은 색상을 대체합니다.
Resize(이트, 이트, 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(이트, 이트)
이미지 차원을 업데이트합니다.
protected override void UpdateDimensions(int newWidth, int newHeight)
Parameters
newWidth
int
새로운 이미지 폭.
newHeight
int
새로운 이미지 높이.