Class CmxImagePage
Nombre del espacio: Aspose.Imaging.FileFormats.Cmx Asamblea: Aspose.Imaging.dll (25.4.0)
Imagen de la página CMX
[JsonObject(MemberSerialization.OptIn)]
public class CmxImagePage : VectorImage, IDisposable, IObjectWithBounds, ICmxImage, IObjectWithSizeF
Inheritance
object ← DisposableObject ← DataStreamSupporter ← Image ← VectorImage ← CmxImagePage
Implements
IDisposable ,y, IObjectWithBounds ,y, ICmxImage ,y, IObjectWithSizeF
Miembros heredados
VectorImage.GetEmbeddedImages() ,y, VectorImage.RemoveBackground() ,y, VectorImage.RemoveBackground(RemoveBackgroundSettings) ,y, VectorImage.Resize(int, int, ResizeType) ,y, VectorImage.Resize(int, int, ImageResizeSettings) ,y, VectorImage.RotateFlip(RotateFlipType) ,y, VectorImage.Crop(Rectangle) ,y, VectorImage.Rotate(float) ,y, VectorImage.Modify(RectangleF, float, float, float) ,y, VectorImage.SizeF ,y, VectorImage.WidthF ,y, VectorImage.HeightF ,y, VectorImage.Width ,y, VectorImage.Height ,y, Image.CanLoad(string) ,y, Image.CanLoad(string, LoadOptions) ,y, Image.CanLoad(Stream) ,y, Image.CanLoad(Stream, LoadOptions) ,y, Image.Create(ImageOptionsBase, int, int) ,y, Image.Create(Image[]) ,y, Image.Create(MultipageCreateOptions) ,y, Image.Create(string[], bool) ,y, Image.Create(string[]) ,y, Image.Create(Image[], bool) ,y, Image.GetFileFormat(string) ,y, Image.GetFileFormat(Stream) ,y, Image.GetFittingRectangle(Rectangle, int, int) ,y, Image.GetFittingRectangle(Rectangle, int[], int, int) ,y, Image.Load(string, LoadOptions) ,y, Image.Load(string) ,y, Image.Load(Stream, LoadOptions) ,y, Image.Load(Stream) ,y, Image.GetProportionalWidth(int, int, int) ,y, Image.GetProportionalHeight(int, int, int) ,y, Image.RemoveMetadata() ,y, Image.CanSave(ImageOptionsBase) ,y, Image.Resize(int, int) ,y, Image.Resize(int, int, ResizeType) ,y, Image.Resize(int, int, ImageResizeSettings) ,y, Image.GetDefaultOptions(object[]) ,y, Image.GetOriginalOptions() ,y, Image.ResizeWidthProportionally(int) ,y, Image.ResizeHeightProportionally(int) ,y, Image.ResizeWidthProportionally(int, ResizeType) ,y, Image.ResizeHeightProportionally(int, ResizeType) ,y, Image.ResizeWidthProportionally(int, ImageResizeSettings) ,y, Image.ResizeHeightProportionally(int, ImageResizeSettings) ,y, Image.RotateFlip(RotateFlipType) ,y, Image.Rotate(float) ,y, Image.Crop(Rectangle) ,y, Image.Crop(int, int, int, int) ,y, Image.Save() ,y, Image.Save(string) ,y, Image.Save(string, ImageOptionsBase) ,y, Image.Save(string, ImageOptionsBase, Rectangle) ,y, Image.Save(Stream, ImageOptionsBase) ,y, Image.Save(Stream, ImageOptionsBase, Rectangle) ,y, Image.GetSerializedStream(ImageOptionsBase, Rectangle, out int) ,y, Image.SetPalette(IColorPalette, bool) ,y, Image.UpdateContainer(Image) ,y, Image.GetCanNotSaveMessage(ImageOptionsBase) ,y, Image.GetFitRectangle(Rectangle) ,y, Image.GetImage2Export(ImageOptionsBase, Rectangle, IImageExporter) ,y, Image.GetFitRectangle(Rectangle, int[]) ,y, Image.OnPaletteChanged(IColorPalette, IColorPalette) ,y, Image.OnPaletteChanging(IColorPalette, IColorPalette) ,y, Image.ReleaseManagedResources() ,y, Image.BitsPerPixel ,y, Image.Bounds ,y, Image.Container ,y, Image.Height ,y, Image.Palette ,y, Image.UsePalette ,y, Image.Size ,y, Image.Width ,y, Image.InterruptMonitor ,y, Image.BufferSizeHint ,y, Image.AutoAdjustPalette ,y, Image.HasBackgroundColor ,y, Image.FileFormat ,y, Image.BackgroundColor ,y, DataStreamSupporter.timeout ,y, DataStreamSupporter.CacheData() ,y, DataStreamSupporter.Save() ,y, DataStreamSupporter.Save(Stream) ,y, DataStreamSupporter.Save(string) ,y, DataStreamSupporter.Save(string, bool) ,y, DataStreamSupporter.SaveData(Stream) ,y, DataStreamSupporter.ReleaseManagedResources() ,y, DataStreamSupporter.OnDataStreamContainerChanging(StreamContainer) ,y, DataStreamSupporter.DataStreamContainer ,y, DataStreamSupporter.IsCached ,y, DisposableObject.Dispose() ,y, DisposableObject.ReleaseManagedResources() ,y, DisposableObject.ReleaseUnmanagedResources() ,y, DisposableObject.VerifyNotDisposed() ,y, DisposableObject.Disposed ,y, object.GetType() ,y, object.MemberwiseClone() ,y, object.ToString() ,y, object.Equals(object?) ,y, object.Equals(object?, object?) ,y, object.ReferenceEquals(object?, object?) ,y, object.GetHashCode()
Constructors
CmxImagePage(CmxPage, Imagen)
Inicia una nueva instancia de la clase Aspose.Imaging.FileFormats.Cmx.CmxImagePage.
public CmxImagePage(CmxPage cmxPage, Image container)
Parameters
cmxPage
CmxPage
La página CMX.
container
Image
El contenedor.
CmxImagePage(CmxPage)
Inicia una nueva instancia de la clase Aspose.Imaging.FileFormats.Cmx.CmxImagePage.
public CmxImagePage(CmxPage cmxPage)
Parameters
cmxPage
CmxPage
La página CMX.
Properties
BitsPerPixel
Recibe los bits de la imagen por cuenta de píxeles.
public override int BitsPerPixel { get; }
Valor de la propiedad
CmxPage
Obtenga la página CMX.
public CmxPage CmxPage { get; }
Valor de la propiedad
FileFormat
Obtener un valor de formato de archivo
public override FileFormat FileFormat { get; }
Valor de la propiedad
Height
Obtenga la altura de la imagen.
public override int Height { get; }
Valor de la propiedad
El altoF
Recibe la altura del objeto, en pulgadas.
public override float HeightF { get; }
Valor de la propiedad
IsCached
Recibe un valor que indica si los datos del objeto están cajados actualmente y no se requiere la lectura de datos.
public override bool IsCached { get; }
Valor de la propiedad
Width
Obtenga la ancho de la imagen.
public override int Width { get; }
Valor de la propiedad
El WidthF
Obtiene la anchura del objeto, en pulgadas.
public override float WidthF { get; }
Valor de la propiedad
Methods
CacheData()
El cache no puede ser utilizado.
public override void CacheData()
Examples
El siguiente ejemplo muestra cómo ocultar todas las páginas de una imagen CMX.
string dir = "c:\\temp\\";
// Load an image from a CMX file.
using (Aspose.Imaging.FileFormats.Cmx.CmxImage image = (Aspose.Imaging.FileFormats.Cmx.CmxImage)Aspose.Imaging.Image.Load(dir + "sample.cmx"))
{
// This call caches only the default page.
image.CacheData();
// Cache all pages so that no additional data loading will be performed from the underlying data stream.
foreach (Aspose.Imaging.FileFormats.Cmx.CmxImagePage page in image.Pages)
{
page.CacheData();
}
}
GetDefaultOptions(Objeto[])
Tiene las opciones de default.
public override ImageOptionsBase GetDefaultOptions(object[] args)
Parameters
args
object
[][]
Los argumentos.
Returns
Opciones defectuosas
ReleaseManagedResources()
Asegúrese de que los recursos no gestionados no se liberan aquí, ya que pueden haber sido ya liberados.
protected override void ReleaseManagedResources()
Resize(int, int, ImageResizeSettings)
Recupera la imagen.
public override void Resize(int newWidth, int newHeight, ImageResizeSettings settings)
Parameters
newWidth
int
La nueva amplitud.
newHeight
int
La nueva altura.
settings
ImageResizeSettings
los ajustes de residuos.
SaveData(Stream)
ahorrar los datos.
protected override void SaveData(Stream stream)
Parameters
stream
Stream
El flujo para salvar los datos a.
SetPalette(Página web, bool)
Coloca la paleta de imagen.
public override void SetPalette(IColorPalette palette, bool updateColors)
Parameters
palette
IColorPalette
La paleta se establece.
updateColors
bool
si se ha ajustado a los colores ‘verdaderos’ se actualizará de acuerdo con la nueva paleta; de lo contrario, los índices de color permanecerán inalterados.Tenga en cuenta que los índices inalterados pueden romper la imagen en carga si algunos índices no tienen entradas de paleta correspondientes.