Class RasterCachedMultipageImage
Tên không gian: Aspose.Imaging Tổng hợp: Aspose.Imaging.dll (25.4.0)
Hình ảnh đa trang Raster
public abstract class RasterCachedMultipageImage : RasterCachedImage, IDisposable, IObjectWithBounds, IRasterImageArgb32PixelLoader, IRasterImageRawDataLoader, IHasXmpData, IHasMetadata, IMultipageImage
Inheritance
object ← DisposableObject ← DataStreamSupporter ← Image ← RasterImage ← RasterCachedImage ← RasterCachedMultipageImage
Derived
ApngImage , DicomImage , DjvuImage , GifImage , IcoImage , TiffImage , WebPImage
Implements
IDisposable , IObjectWithBounds , IRasterImageArgb32PixelLoader , IRasterImageRawDataLoader , IHasXmpData , IHasMetadata , IMultipageImage
Thành viên thừa kế
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.OnCached() , RasterCachedImage.OnPaletteChanged(IColorPalette, IColorPalette) , RasterCachedImage.IsCached , RasterImage.xmpData , 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.ReleaseManagedResources() , RasterImage.UpdateMetadata() , RasterImage.UpdateDimensions(int, int) , 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 , RasterImage.DataLoader , 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.UpdateContainer(Image) , Image.GetCanNotSaveMessage(ImageOptionsBase) , Image.GetFitRectangle(Rectangle) , Image.GetImage2Export(ImageOptionsBase, Rectangle, IImageExporter) , Image.GetFitRectangle(Rectangle, int[]) , Image.OnPaletteChanged(IColorPalette, IColorPalette) , Image.OnPaletteChanging(IColorPalette, IColorPalette) , Image.ReleaseManagedResources() , 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.timeout , DataStreamSupporter.CacheData() , DataStreamSupporter.Save() , DataStreamSupporter.Save(Stream) , DataStreamSupporter.Save(string) , DataStreamSupporter.Save(string, bool) , DataStreamSupporter.SaveData(Stream) , DataStreamSupporter.ReleaseManagedResources() , DataStreamSupporter.OnDataStreamContainerChanging(StreamContainer) , DataStreamSupporter.DataStreamContainer , DataStreamSupporter.IsCached , DisposableObject.Dispose() , DisposableObject.ReleaseManagedResources() , DisposableObject.ReleaseUnmanagedResources() , DisposableObject.VerifyNotDisposed() , DisposableObject.Disposed , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
RasterCachedMultipageImage(Đồ chơi ICOLOR)
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.RasterCachedMultipageImage.
protected RasterCachedMultipageImage(IColorPalette colorPalette)
Parameters
colorPalette
IColorPalette
Màu palet
RasterCachedMultipageImage()
Bắt đầu một trường hợp mới của lớp Aspose.Imaging.RasterCachedMultipageImage.
protected RasterCachedMultipageImage()
Properties
BackgroundColor
Nhận hoặc đặt giá trị cho màu nền.
public override Color BackgroundColor { get; set; }
Giá trị bất động sản
BitsPerPixel
Nhận bit hình ảnh theo số pixel.
public override int BitsPerPixel { get; }
Giá trị bất động sản
HasAlpha
Nó nhận được một giá trị chỉ ra liệu trường hợp này có alpha hay không.
public override bool HasAlpha { get; }
Giá trị bất động sản
HasTransparentColor
Nó nhận được một giá trị cho thấy liệu hình ảnh có màu sắc minh bạch hay không.
public override bool HasTransparentColor { get; }
Giá trị bất động sản
Height
Nhận được độ cao hình ảnh.
public override int Height { get; }
Giá trị bất động sản
ImageOpacity
Nhận được sự vô hình của hình ảnh này.
public override float ImageOpacity { get; }
Giá trị bất động sản
IsCached
Nó nhận được một giá trị cho thấy liệu dữ liệu hình ảnh hiện đang được ẩn.
public override bool IsCached { get; }
Giá trị bất động sản
PageCount
Nhận số trang.
public abstract int PageCount { get; }
Giá trị bất động sản
PageExportingAction
Nhận hoặc đặt trang xuất khẩu hành động.Xin lưu ý rằng thiết lập phương pháp này sẽ tự động phát hành tài nguyên trang sau khi nó được thực hiện.Nó sẽ được thực hiện ngay trước khi mỗi trang được tiết kiệm.
public virtual PageExportingAction PageExportingAction { get; set; }
Giá trị bất động sản
Examples
Ví dụ sau đây cho thấy chuyển đổi bìa trước khi tiết kiệm (xem) hình ảnh Tiff.
string fileName = "10MB_Tif.tif";
string inputFileName = fileName;
string outputFileNameTif = "output.tif";
//The possibility of batch conversion before saving (exporting) Tiff images is implemented.
using (Aspose.Imaging.FileFormats.Tiff.TiffImage tiffImage = (Aspose.Imaging.FileFormats.Tiff.TiffImage)Aspose.Imaging.Image.Load(inputFileName))
{
// Set batch operation for pages
tiffImage.PageExportingAction = delegate(int index, Image page)
{
// Fires garbage collection to avoid unnecessary garbage storage from previous pages
GC.Collect();
((Aspose.Imaging.RasterImage)page).Rotate(90);
};
tiffImage.Save(outputFileNameTif);
/* Attention! In batch mode all pages will be released in this line!
If you want to further perform operations on the original image, you should reload it from the source to another instance. */
}
Pages
Nhận các trang.
public abstract Image[] Pages { get; }
Giá trị bất động sản
Image [ ]
Width
Nhận được chiều rộng hình ảnh
public override int Width { get; }
Giá trị bất động sản
XmpData
Nhận hoặc đặt dữ liệu XMP từ khung.
public override XmpPacketWrapper XmpData { get; set; }
Giá trị bất động sản
Methods
AdjustBrightness(int)
Tùy chỉnh brightness’ cho hình ảnh.
public override void AdjustBrightness(int brightness)
Parameters
brightness
int
Giá trị ánh sáng
AdjustContrast(Sông)
WL17_.Điều tương phản hình ảnh
public override void AdjustContrast(float contrast)
Parameters
contrast
float
Giá trị tương phản (trong phạm vi [-100; 100])
AdjustGamma(float, float và float)
Gamma correction của một hình ảnh.
public override void AdjustGamma(float gammaRed, float gammaGreen, float gammaBlue)
Parameters
gammaRed
float
Gamma cho Red Channel Coefficient
gammaGreen
float
Gamma cho Green Channel Coefficient
gammaBlue
float
Gamma cho Blue Channel Coefficient
AdjustGamma(Sông)
Gamma correction của một hình ảnh.
public override void AdjustGamma(float gamma)
Parameters
gamma
float
Gamma cho các kênh đỏ, xanh và xanh coefficient
BinarizeBradley(Đôi, int)
Binarization của một hình ảnh bằng cách sử dụng thuật toán giới hạn thích ứng của Bradley bằng cách sử dụng giới hạn hình ảnh toàn diện
public override void BinarizeBradley(double brightnessDifference, int windowSize)
Parameters
brightnessDifference
double
Sự khác biệt độ sáng giữa pixel và trung bình của một s x s cửa sổ của pixelstập trung xung quanh pixel này.
windowSize
int
Kích thước của s x s cửa sổ của các pixel tập trung xung quanh pixel này
BinarizeBradley(đôi)
Binarization của một hình ảnh bằng cách sử dụng thuật toán giới hạn thích ứng của Bradley bằng cách sử dụng giới hạn hình ảnh toàn diện
public override void BinarizeBradley(double brightnessDifference)
Parameters
brightnessDifference
double
Sự khác biệt độ sáng giữa pixel và trung bình của một s x s cửa sổ của pixelstập trung xung quanh pixel này.
BinarizeFixed(byte)
Binarization của một hình ảnh với giới hạn được xác định trước
public override void BinarizeFixed(byte threshold)
Parameters
threshold
byte
Giá trị ranh giới: Nếu giá trị màu xám tương ứng của một pixel lớn hơn so với giới hạn, một255 sẽ được phân bổ cho nó, 0 khác.
BinarizeOtsu()
Binarization của một hình ảnh với Otsu thang
public override void BinarizeOtsu()
Blend(Điểm, RasterImage, Rectangle, byte)
Kết hợp mẫu ảnh này với hình ảnh overlay".
public override void Blend(Point origin, RasterImage overlay, Rectangle overlayArea, byte overlayAlpha = 255)
Parameters
origin
Point
Hình nền có nguồn gốc hỗn hợp.
overlay
RasterImage
Hình ảnh Overlay
overlayArea
Rectangle
Khu vực Overlay
overlayAlpha
byte
Lời bài hát: The Overlay Alpha
Exceptions
Ảnh ngoại lệ
CacheData()
ẩn dữ liệu riêng tư.
public override void CacheData()
CanDoAdjustments()
Quyết định xem trường hợp này có [có thể thực hiện điều chỉnh].
protected virtual bool CanDoAdjustments()
Returns
“Thật” nếu trường hợp này [có thể điều chỉnh]; nếu không, “không đúng”.
Crop(Rectangle)
Khai thác hình ảnh
public override void Crop(Rectangle rectangle)
Parameters
rectangle
Rectangle
Vòng thẳng.
Crop(int, int, int, int, int)
Hình ảnh thực vật với chuyển đổi
public override void Crop(int leftShift, int rightShift, int topShift, int bottomShift)
Parameters
leftShift
int
bên trái thay đổi.
rightShift
int
Chuyển đổi đúng
topShift
int
Thay đổi hàng đầu
bottomShift
int
Thay đổi bên dưới.
Exceptions
Mũi tên không chính xác. - RectanglehoặcRectangle phải được chứa trong các giới hạn hình ảnh. - rectangles
Không thể trồng hình ảnh. Frame index: " + frameIndexhoặcKhông thể trồng hình ảnh
CropMain(int, int, int, int, int)
Cà rốt chính.
protected virtual void CropMain(int leftShift, int rightShift, int topShift, int bottomShift)
Parameters
leftShift
int
bên trái thay đổi.
rightShift
int
Chuyển đổi đúng
topShift
int
Thay đổi hàng đầu
bottomShift
int
Thay đổi bên dưới.
Dither(DitheringMethod, int, IColorPalette)
Hiển thị trên hình ảnh hiện tại.
public override void Dither(DitheringMethod ditheringMethod, int bitsCount, IColorPalette customPalette)
Parameters
ditheringMethod
DitheringMethod
Phương pháp di chuyển.
bitsCount
int
Các bit cuối cùng đếm cho dithering.
customPalette
IColorPalette
Thói quen của palette cho dithering.
Filter(Xác định, FilterOptionsBase)
Xác định đường thẳng cụ thể.
public override void Filter(Rectangle rectangle, FilterOptionsBase options)
Parameters
rectangle
Rectangle
Vòng thẳng.
options
FilterOptionsBase
Các tùy chọn.
GetPagesAsEnumerable()
Nhận các trang như có thể liệt kê.
protected virtual IEnumerable<image/> GetPagesAsEnumerable()
Returns
IEnumerable < Image >
Các trang riêng như có thể liệt kê.
GetSerializedStream(ImageOptionsBase, Rectangle, out int)
Chuyển sang APS.
public override Stream GetSerializedStream(ImageOptionsBase imageOptions, Rectangle clippingRectangle, out int pageNumber)
Parameters
imageOptions
ImageOptionsBase
Các tùy chọn hình ảnh.
clippingRectangle
Rectangle
Cliping trực tiếp.
pageNumber
int
Số trang .
Returns
dòng chảy serial
Grayscale()
Sự biến đổi của một hình ảnh thành đại diện grayscale của nó
public override void Grayscale()
NormalizeAngle(Bool, Màu sắc)
bình thường hóa góc độ.Phương pháp này áp dụng cho các tài liệu văn bản được quét để thoát khỏi quét quét.Phương pháp này sử dụng các phương pháp Aspose.Imaging.RasterImage.GetSkewAngle và Wl17. RasterCachedMultipageImages.rotate(System.Single,Sistem.Boolean,__W L17 _.Color).
public override void NormalizeAngle(bool resizeProportionally, Color backgroundColor)
Parameters
resizeProportionally
bool
Nếu được thiết lập để ’truyền’ bạn sẽ có kích cỡ hình ảnh của bạn thay đổi theo hình chiếu trực tiếp xoay (các điểm góc) trong trường hợp khác để lại các kích cỡ không bị chạm và chỉ nội dung hình ảnh được xoay.
backgroundColor
Color
Màu sắc của nền
NormalizeHistogram()
Tiêu chuẩn hóa histogram hình ảnh — điều chỉnh các giá trị pixel để sử dụng tất cả phạm vi có sẵn.
public override void NormalizeHistogram()
ReleaseManagedResources()
Hãy chắc chắn rằng không có tài nguyên không được quản lý được phát hành ở đây, vì chúng có thể đã đượcđã được phát hành.
protected override void ReleaseManagedResources()
ReplaceColor(int, byte, int)
Thay thế một màu với màu khác với sự khác biệt cho phép và giữ giá trị alpha ban đầu để tiết kiệm ranh giới mịn màng.
public override void ReplaceColor(int oldColorArgb, byte oldColorDiff, int newColorArgb)
Parameters
oldColorArgb
int
Giá trị màu cũ ARGB sẽ được thay thế.
oldColorDiff
byte
Cho phép sự khác biệt trong màu cũ để có thể mở rộng màu sắc thay thế.
newColorArgb
int
Giá trị màu mới ARGB để thay thế màu cũ với.
ReplaceNonTransparentColors(int)
Thay thế tất cả các màu sắc không minh bạch với màu sắc mới và duy trì giá trị alpha ban đầu để tiết kiệm ranh giới mịn màng.Lưu ý: Nếu bạn sử dụng nó trên hình ảnh mà không có minh bạch, tất cả các màu sắc sẽ được thay thế bằng một.
public override void ReplaceNonTransparentColors(int newColorArgb)
Parameters
newColorArgb
int
Giá trị màu mới ARGB để thay thế màu sắc không minh bạch với.
Resize(int, int, resizeType)
Xóa lại hình ảnh.
public override void Resize(int newWidth, int newHeight, ResizeType resizeType)
Parameters
newWidth
int
Chiều rộng mới
newHeight
int
Độ cao mới
resizeType
ResizeType
Loại Resize
Resize(int, int, ImageResizeSettings)
Xóa lại hình ảnh.
public override void Resize(int newWidth, int newHeight, ImageResizeSettings settings)
Parameters
newWidth
int
Chiều rộng mới
newHeight
int
Độ cao mới
settings
ImageResizeSettings
Các thiết lập resize.
ResizeHeightProportionally(Nhãn hiệu: ResizeType)
Tăng chiều rộng tương đối.
public override void ResizeHeightProportionally(int newHeight, ResizeType resizeType)
Parameters
newHeight
int
Độ cao mới
resizeType
ResizeType
Loại của resize.
ResizeMain(int, int, resizeType)
Chỉ giữ lại hình ảnh trở lại.
protected virtual void ResizeMain(int newWidth, int newHeight, ResizeType resizeType)
Parameters
newWidth
int
Chiều rộng mới
newHeight
int
Độ cao mới
resizeType
ResizeType
Loại của resize.
ResizeWidthProportionally(Nhãn hiệu: ResizeType)
Tăng chiều rộng tương đối.
public override void ResizeWidthProportionally(int newWidth, ResizeType resizeType)
Parameters
newWidth
int
Chiều rộng mới
resizeType
ResizeType
Loại của resize.
Rotate(Float, Bool, Màu sắc)
Aspose.Imaging.RasterCachedMultipageImage.rotate(System.Single,Sistem.Boolean,_Wl17.Color) hình ảnh xung quanh trung tâm.
public override void Rotate(float angle, bool resizeProportionally, Color backgroundColor)
Parameters
angle
float
góc xoay trong độ. giá trị tích cực sẽ xoay theo cách đồng hồ.
resizeProportionally
bool
Nếu được thiết lập để ’truyền’ bạn sẽ có kích thước hình ảnh của bạn thay đổi theo các dự án thẳng góc (các điểm góc) quay trong trường hợp khác để lại các kích cỡ không bị chạm và chỉ nội bộ nội dung ảnh được quay.
backgroundColor
Color
Màu sắc của nền
RotateFlip(RotateFlipType)
Routes, flips, hoặc rotates và flip tất cả các trang.
public override void RotateFlip(RotateFlipType rotateFlipType)
Parameters
rotateFlipType
RotateFlipType
Loại Flip Rotate
RotateFlipAll(RotateFlipType)
xoay flip tất cả.
[Obsolete("Please use RotateFlip instead of this method.")]
public virtual void RotateFlipAll(RotateFlipType rotateFlip)
Parameters
rotateFlip
RotateFlipType
Cây xoay flip.
RotateFlipMain(RotateFlipType)
xoay flip chính.
protected virtual void RotateFlipMain(RotateFlipType rotateFlipType)
Parameters
rotateFlipType
RotateFlipType
Loại của rotat flip.
SavePixelsInternalMain(Vị trí, int[])
Tiết kiệm các pixel nội bộ chính.
protected virtual void SavePixelsInternalMain(Rectangle rectangle, int[] pixels)
Parameters
rectangle
Rectangle
Vòng thẳng.
pixels
int
[ ]
Các pixel