C# 클래스 Aspose.Words.Examples.CSharp.Programming_Documents.Working_with_Images.Resampler

파일 보기 프로젝트 열기: aspose-words/Aspose.Words-for-.NET

공개 메소드들

메소드 설명
Resample ( Document doc, int desiredPpi, int jpegQuality ) : int

Resamples all images in the document that are greater than the specified PPI (pixels per inch) to the specified PPI And converts them to JPEG with the specified quality setting.

비공개 메소드들

메소드 설명
GetEncoderInfo ( ImageFormat format ) : System.Drawing.Imaging.ImageCodecInfo

Gets the codec info for the specified image format. Throws if cannot find.

ResampleCore ( ImageData imageData, SizeF shapeSizeInPoints, int ppi, int jpegQuality ) : bool

Resamples one VML or DrawingML image

메소드 상세

Resample() 공개 정적인 메소드

Resamples all images in the document that are greater than the specified PPI (pixels per inch) to the specified PPI And converts them to JPEG with the specified quality setting.
public static Resample ( Document doc, int desiredPpi, int jpegQuality ) : int
doc Document The document to process.
desiredPpi int Desired pixels per inch. 220 high quality. 150 screen quality. 96 email quality.
jpegQuality int 0 - 100% JPEG quality.
리턴 int