Class GifFrameBlock

Class GifFrameBlock

Le nom : Aspose.Imaging.FileFormats.Gif.Blocks Assemblée: Aspose.Imaging.dll (25.4.0)

Classe de 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

I membri ereditari

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(Téléchargement, Téléchargement)

Initialisez une nouvelle instance de la classe Aspose.Imaging.FileFormats.Gif.Blocks.

public GifFrameBlock(ushort width, ushort height)

Parameters

width ushort

La largeur de l’image.

height ushort

La hauteur de l’image.

Examples

Cet exemple montre comment créer une image GIF et la sauvegarder dans un fichier.

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");
                                                                                  }
                                                                              }

Cet exemple montre comment créer une image GIF avec une palette personnalisée et la sauver dans un fichier.

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");
                                                                                                        }
                                                                                                    }

L’exemple ci-dessous montre comment composer une image GIF animée à partir de blocs individuels 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(Méditerranée : Ushort, ushort)

Initialisez une nouvelle instance de la classe Aspose.Imaging.FileFormats.Gif.Blocks.

public GifFrameBlock(ushort left, ushort top, ushort width, ushort height)

Parameters

left ushort

Position de l’image gauche.

top ushort

Position de l’image supérieure.

width ushort

La largeur de l’image.

height ushort

La hauteur de l’image.

GifFrameBlock(Ushort, Ushorte, ushort , ushorte , IColorPalette , bool , Bool, byte)

Initialisez une nouvelle instance de la classe Aspose.Imaging.FileFormats.Gif.Blocks.

public GifFrameBlock(ushort left, ushort top, ushort width, ushort height, IColorPalette colorPalette, bool isPaletteSorted, bool isGifFrameInterlaced, byte bitsPerPixel)

Parameters

left ushort

Position de l’image gauche.

top ushort

Position de l’image supérieure.

width ushort

L’image est large.

height ushort

La hauteur de l’image.

colorPalette IColorPalette

La paletta dei colori.

isPaletteSorted bool

Si vous définissez “true”, la palette de couleur est sortée.

isGifFrameInterlaced bool

Si vous définissez “true”, le cadre GIF est interligé.

bitsPerPixel byte

Les bits par pixel.

GifFrameBlock(RasterImage)

Initialisez une nouvelle instance de la classe Aspose.Imaging.FileFormats.Gif.Blocks.

public GifFrameBlock(RasterImage image)

Parameters

image RasterImage

L’image pour initialiser les pixels de cadre et les données de palette avec.

GifFrameBlock(Téléchargement, Ushort, ushort)

Initialisez une nouvelle instance de la classe Aspose.Imaging.FileFormats.Gif.Blocks.

public GifFrameBlock(RasterImage image, ushort left, ushort top)

Parameters

image RasterImage

L’image pour initialiser les pixels de cadre et les données de palette avec.

left ushort

Position de l’image gauche.

top ushort

Position de l’image supérieure.

GifFrameBlock(RasterImage, Ushort, ushort , bool, boole, byte)

Initialisez une nouvelle instance de la classe Aspose.Imaging.FileFormats.Gif.Blocks.

public GifFrameBlock(RasterImage image, ushort left, ushort top, bool isPaletteSorted, bool isGifFrameInterlaced, byte lzwCodeSize)

Parameters

image RasterImage

L’image pour initialiser les pixels de cadre et les données de palette avec.

left ushort

Position de l’image gauche.

top ushort

Position de l’image supérieure.

isPaletteSorted bool

Si vous définissez “true”, la palette de couleur est sortée.

isGifFrameInterlaced bool

Si vous définissez “true”, le cadre GIF est interligé.

lzwCodeSize byte

Les bits par pixel.

GifFrameBlock(Stream)

Initialisez une nouvelle instance de la classe Aspose.Imaging.FileFormats.Gif.Blocks.

public GifFrameBlock(Stream stream)

Parameters

stream Stream

Le courant pour charger une image et initialiser les pixels de cadre et les données de palette avec.

GifFrameBlock(Téléchargement, Ushort, ushort)

Initialisez une nouvelle instance de la classe Aspose.Imaging.FileFormats.Gif.Blocks.

public GifFrameBlock(Stream stream, ushort left, ushort top)

Parameters

stream Stream

Le courant pour charger une image et initialiser les pixels de cadre et les données de palette avec.

left ushort

Position de l’image gauche.

top ushort

Position de l’image supérieure.

GifFrameBlock(Stream, Ushort, ushort , bool, boole, byte)

Initialisez une nouvelle instance de la classe Aspose.Imaging.FileFormats.Gif.Blocks.

public GifFrameBlock(Stream stream, ushort left, ushort top, bool isPaletteSorted, bool isGifFrameInterlaced, byte lzwCodeSize)

Parameters

stream Stream

Le courant pour charger une image et initialiser les pixels de cadre et les données de palette avec.

left ushort

Position de l’image gauche.

top ushort

Position de l’image supérieure.

isPaletteSorted bool

Si vous définissez “true”, la palette de couleur est sortée.

isGifFrameInterlaced bool

Si vous définissez “true”, le cadre GIF est interligé.

lzwCodeSize byte

Les bits par pixel.

GifFrameBlock(Le string)

Initialisez une nouvelle instance de la classe Aspose.Imaging.FileFormats.Gif.Blocks.

public GifFrameBlock(string path)

Parameters

path string

Le chemin pour charger une image et initialiser les pixels de cadre et les données de palette avec.

GifFrameBlock(Téléchargement, Ushort, ushort)

Initialisez une nouvelle instance de la classe Aspose.Imaging.FileFormats.Gif.Blocks.

public GifFrameBlock(string path, ushort left, ushort top)

Parameters

path string

Le chemin pour charger une image et initialiser les pixels de cadre et les données de palette avec.

left ushort

Position de l’image gauche.

top ushort

Position de l’image supérieure.

GifFrameBlock(String, Ushort, ushort et bool, byte)

Initialisez une nouvelle instance de la classe Aspose.Imaging.FileFormats.Gif.Blocks.

public GifFrameBlock(string path, ushort left, ushort top, bool isPaletteSorted, bool isGifFrameInterlaced, byte lzwCodeSize)

Parameters

path string

Le chemin pour charger une image et initialiser les pixels de cadre et les données de palette avec.

left ushort

Position de l’image gauche.

top ushort

Position de l’image supérieure.

isPaletteSorted bool

Si vous définissez “true”, la palette de couleur est sortée.

isGifFrameInterlaced bool

Si vous définissez “true”, le cadre GIF est interligé.

lzwCodeSize byte

Les bits par pixel.

Fields

ExtensionLabel

Étiquette d’extension de bloc.

public const int ExtensionLabel = 44

Valore di campo

int

ImageDescriptorSize

La taille de l’image descripteur.

public const int ImageDescriptorSize = 10

Valore di campo

int

Properties

BackgroundColor

Riceve o impone un valore per il colore di sfondo.

public override Color BackgroundColor { get; set; }

Valore di proprietà

Color

BitsPerPixel

Riceve i bit di immagine per pixel.

public override int BitsPerPixel { get; }

Valore di proprietà

int

ControlBlock

Obtenez le bloc de contrôle graphique associé à ce bloc.

public GifGraphicsControlBlock ControlBlock { get; }

Valore di proprietà

GifGraphicsControlBlock

DisposalMethod

Obtenez la méthode de détachement.

public AnimationDisposalMethods DisposalMethod { get; }

Valore di proprietà

AnimationDisposalMethods

FileFormat

Riceve un valore di formato file

public override FileFormat FileFormat { get; }

Valore di proprietà

FileFormat

Flags

Il prend ou met les drapeaux.

public byte Flags { get; set; }

Valore di proprietà

byte

FrameLeft

Recevoir la gauche.

public int FrameLeft { get; }

Valore di proprietà

int

FrameTime

Obtenez ou définissez la durée.

public int FrameTime { get; set; }

Valore di proprietà

int

FrameTop

Convertir à p.

public int FrameTop { get; }

Valore di proprietà

int

GifFrameBitsPerPixel

Obtenez ou définissez les bits de frame GIF par pixel.

public byte GifFrameBitsPerPixel { get; set; }

Valore di proprietà

byte

HasTransparentColor

Obtient une valeur indiquant si le bloc de cadre a une couleur transparente.

public override bool HasTransparentColor { get; set; }

Valore di proprietà

bool

Height

Ottieni l’altezza dell’immagine.

public override int Height { get; }

Valore di proprietà

int

Interlaced

Obtenez ou définissez une valeur indiquant si ce Aspose.Imaging.FileFormats.Gif.Blocks.

public bool Interlaced { get; set; }

Valore di proprietà

bool

IsInterlaced

Obtenez une valeur indiquant si cette image est interligée.

public bool IsInterlaced { get; }

Valore di proprietà

bool

IsPaletteSorted

Obtenez ou définissez une valeur indiquant si la palette de couleur est sortée.

public bool IsPaletteSorted { get; set; }

Valore di proprietà

bool

Left

Obtenez ou définissez la position de l’image gauche.

[JsonProperty]
public ushort Left { get; set; }

Valore di proprietà

ushort

Top

Obtenez ou définissez la position de l’image supérieure.

[JsonProperty]
public ushort Top { get; set; }

Valore di proprietà

ushort

TransparentColor

Il obtient la couleur transparente du bloc de cadre.

public override Color TransparentColor { get; set; }

Valore di proprietà

Color

UseAlphaBlending

Obtenez une valeur indiquant si [utilisez le mélange alpha].

public bool UseAlphaBlending { get; }

Valore di proprietà

bool

Width

Ottieni la larghezza dell’immagine.

public override int Width { get; }

Valore di proprietà

int

Methods

AdjustBrightness(int)

Adattare una luminosità per l’immagine.

public override void AdjustBrightness(int brightness)

Parameters

brightness int

Il valore della luminosità.

CreateFlags(Résumé : Bool, bool)

Il crée les drapeaux.

public static byte CreateFlags(IColorPalette colorPalette, bool isPaletteSorted, bool isGifFrameInterlaced)

Parameters

colorPalette IColorPalette

La paletta dei colori.

isPaletteSorted bool

Si vous définissez “true”, les couleurs dans la palette de couleurs sont sortées.

isGifFrameInterlaced bool

Si vous définissez “true”, l’image du cadre GIF est interliquée.

Returns

byte

Les drapeaux créés.

GetColorPalette(L’ICOLOR, L’ICOLOR)

Obtenez la palette de couleur associée.

public static IColorPalette GetColorPalette(IColorPalette framePalette, IColorPalette containerPalette)

Parameters

framePalette IColorPalette

La palette de frame.

containerPalette IColorPalette

La palette de conteneur.

Returns

IColorPalette

La paletta dei colori.

GetFullFrame()

Obtenez le cadre complet.

public RasterImage GetFullFrame()

Returns

RasterImage

Il RasterImage avec un cadre complet

Exceptions

NotImplementedException

GetOriginalOptions()

Riceve le opzioni in base alle impostazioni del file originale.Questo può essere utile per mantenere la profondità del bit e altri parametri dell’immagine originale invariati.Ad esempio, se caricamo un’immagine PNG in bianco e nero con 1 bit per pixel e lo salviamo utilizzando ilAspose.Imaging.DataStreamSupporter.Save(System.String) méthode, l’image PNG de sortie avec 8 bits par pixel sera produite.Per evitare e salvare l’immagine PNG con 1 bit per pixel, utilizzare questo metodo per ottenere le opzioni di risparmio corrispondenti e passare loroà la méthode Aspose.Imaging.Image.Save(System.String,_Wl17. ImageOptionsBase) comme deuxième paramètre.

public override ImageOptionsBase GetOriginalOptions()

Returns

ImageOptionsBase

Le opzioni basate sulle impostazioni del file originale.

OnPaletteChanged(L’ICOLOR, L’ICOLOR)

Chiamato quando la paletta è cambiata.

protected override void OnPaletteChanged(IColorPalette oldPalette, IColorPalette newPalette)

Parameters

oldPalette IColorPalette

La vecchia paletta.

newPalette IColorPalette

La nuova paletta.

OnPaletteChanging(L’ICOLOR, L’ICOLOR)

Si chiama quando la paletta sta cambiando.

protected override void OnPaletteChanging(IColorPalette oldPalette, IColorPalette newPalette)

Parameters

oldPalette IColorPalette

La vecchia paletta.

newPalette IColorPalette

La nuova paletta.

ReplaceColor(int, byte, int)

Sostituisce un colore all’altro con la differenza consentita e conserva il valore alfa originale per salvare bordi lisci.

public override void ReplaceColor(int oldColorArgb, byte oldColorDiff, int newColorArgb)

Parameters

oldColorArgb int

Il vecchio valore di colore ARGB deve essere sostituito.

oldColorDiff byte

Permesso di differenza nel vecchio colore per essere in grado di ampliare il tono di colore sostituito.

newColorArgb int

Nuovo valore colore ARGB per sostituire il vecchio colore con.

ReplaceNonTransparentColors(int)

Sostituisce tutti i colori non trasparenti con un nuovo colore e conserva il valore alfa originale per salvare i confini lisci.Nota: se si utilizza su immagini senza trasparenza, tutti i colori saranno sostituiti da uno unico.

public override void ReplaceNonTransparentColors(int newColorArgb)

Parameters

newColorArgb int

Nuovo valore di colore ARGB per sostituire i colori non trasparenti con.

Resize(int, int, imageResizeSettings)

Récupérer cette instance Aspose.Imaging.RasterCachedImage.

public override void Resize(int newWidth, int newHeight, ImageResizeSettings imageResizeSettings)

Parameters

newWidth int

Une nouvelle largeur.

newHeight int

Nouvelle hauteur !

imageResizeSettings ImageResizeSettings

Récupérer les paramètres.

SaveData(Stream)

Économisez les données.

protected override void SaveData(Stream stream)

Parameters

stream Stream

Le flux pour sauvegarder les données.

UpdateDimensions(int, int)

Aggiornare le dimensioni dell’immagine.

protected override void UpdateDimensions(int newWidth, int newHeight)

Parameters

newWidth int

La nuova larghezza dell’immagine.

newHeight int

L’altezza della nuova immagine.

 Français