Class LoadOptions
이름 공간 : Aspose.Imaging 모임: Aspose.Imaging.dll (25.4.0)
충전 옵션을 나타냅니다.
[JsonObject(MemberSerialization.OptIn)]
public class LoadOptions
Inheritance
Derived
CdrLoadOptions , CmxLoadOptions , DngLoadOptions , EpsLoadOptions , Jpeg2000LoadOptions , OdLoadOptions , PngLoadOptions , SvgLoadOptions
상속 회원들
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
LoadOptions()
[JsonConstructor]
public LoadOptions()
Properties
BufferSizeHint
모든 내부 버퍼에 대 한 최대 허용 크기를 정의하는 버퍼 크기 지표를 얻거나 설정합니다.
public int BufferSizeHint { get; set; }
부동산 가치
Examples
다음 예제는 CMX 이미지를 충전할 때 메모리 제한을 설정하는 방법을 보여줍니다. 메모리 제한은 모든 내부 버퍼의 최대 허용 크기입니다.
string dir = "c:\\aspose.imaging\\issues\\net\\3419\\";
// Setting a memory limit of 10 megabytes for a target loaded image.
using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "example.cmx", new Aspose.Imaging.LoadOptions() { BufferSizeHint = 10 }))
{
image.Save(dir + "output.png",
new Aspose.Imaging.ImageOptions.PngOptions()
{
VectorRasterizationOptions =
new Aspose.Imaging.ImageOptions.CmxRasterizationOptions
{
TextRenderingHint = Aspose.Imaging.TextRenderingHint.SingleBitPerPixel,
SmoothingMode = Aspose.Imaging.SmoothingMode.AntiAlias,
Positioning = Aspose.Imaging.ImageOptions.PositioningTypes.DefinedByDocument
}
});
}
다음 예제는 JPEG 이미지를 업로드할 때 메모리 제한을 설정하는 방법을 보여줍니다. 메모리 제한은 모든 내부 버퍼의 최대 허용 크기입니다.
string dir = "c:\\aspose.imaging\\issues\\net\\3404\\";
// Setting a memory limit of 50 megabytes for target loaded image
using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "inputFile.jpg", new Aspose.Imaging.LoadOptions() { BufferSizeHint = 50 }))
{
image.Save(dir + "outputFile_Baseline.jpg",
new Aspose.Imaging.ImageOptions.JpegOptions
{
CompressionType = Aspose.Imaging.FileFormats.Jpeg.JpegCompressionMode.Baseline,
Quality = 100
});
image.Save(dir + "outputFile_Progressive.jpg",
new Aspose.Imaging.ImageOptions.JpegOptions
{
CompressionType = Aspose.Imaging.FileFormats.Jpeg.JpegCompressionMode.Progressive
});
image.Save(dir + "outputFile_Lossless.jpg",
new Aspose.Imaging.ImageOptions.JpegOptions
{
ColorType = Aspose.Imaging.FileFormats.Jpeg.JpegCompressionColorMode.YCbCr,
CompressionType = Aspose.Imaging.FileFormats.Jpeg.JpegCompressionMode.Lossless,
BitsPerChannel = 4
});
image.Save(dir + "outputFile_JpegLs.jpg",
new Aspose.Imaging.ImageOptions.JpegOptions
{
ColorType = Aspose.Imaging.FileFormats.Jpeg.JpegCompressionColorMode.YCbCr,
CompressionType = Aspose.Imaging.FileFormats.Jpeg.JpegCompressionMode.JpegLs,
JpegLsInterleaveMode = Aspose.Imaging.FileFormats.Jpeg.JpegLsInterleaveMode.None,
JpegLsAllowedLossyError = 3,
JpegLsPreset = null
});
}
ConcurrentImageProcessing
[경쟁 이미지 처리]를 나타내는 값을 얻거나 설정합니다.
public bool ConcurrentImageProcessing { get; set; }
부동산 가치
DataBackgroundColor
가져오거나 Aspose.Imaging.Image 배경 Aspose.Imaging.Color을 설정합니다.
public Color DataBackgroundColor { get; set; }
부동산 가치
Remarks
일반적으로 배경 색상은 데이터 부패로 인해 픽셀 가치가 회복되지 않을 때마다 설정됩니다.
DataRecoveryMode
데이터 복구 모드를 얻거나 설정합니다.
public DataRecoveryMode DataRecoveryMode { get; set; }
부동산 가치
ProgressEventHandler
그것을 얻거나 진행 이벤트 거래자를 설정합니다.
[JsonProperty]
public ProgressEventHandler ProgressEventHandler { get; set; }
부동산 가치
Examples
다음 예제는 로드 / 수출 작업의 진행 이벤트에 대한 정보를 인쇄하는 방법을 보여줍니다.
public void Test3460()
{
string dir = "c:\\aspose.imaging\\net\\issues\\3460";
string fileName = System.IO.Path.Combine(dir, "big.png");
// Example of use of separate operation progress event handlers for load/export operations
using (var image = Aspose.Imaging.Image.Load(fileName, new Aspose.Imaging.LoadOptions { ProgressEventHandler = ProgressCallback }))
{
image.Save(fileName + ".psd",
new Aspose.Imaging.ImageOptions.PsdOptions() { ProgressEventHandler = ExportProgressCallback });
}
}
private void ProgressCallback(Aspose.Imaging.ProgressManagement.ProgressEventHandlerInfo info)
{
System.Console.WriteLine("{0} : {1}/{2}", info.EventType, info.Value, info.MaxValue);
}
private void ExportProgressCallback(Aspose.Imaging.ProgressManagement.ProgressEventHandlerInfo info)
{
System.Console.WriteLine("Export event {0} : {1}/{2}", info.EventType, info.Value, info.MaxValue);
}
// The STDOUT log may look like this:
//Initialization : 1/4
//PreProcessing : 2/4
//Processing : 3/4
//Finalization : 4/4
//Export event Initialization : 1/4
//Export event PreProcessing : 2/4
//Export event Processing : 3/4
//Export event RelativeProgress : 1/1
//RelativeProgress : 1/1
//Export event Finalization : 4/4
UseIccProfileConversion
ICC 프로필 변환이 적용되어야 하는지 여부를 나타내는 값을 얻거나 설정합니다.
[Obsolete("ICC profile conversion will be used by default and this property will be removed.")]
public bool UseIccProfileConversion { get; set; }
부동산 가치
Methods
AddCustomFontSource(CustomFontSource, 파라미스 객체[])
사용자 지정 글꼴 출처를 추가하여 이미지 특정 글꼴을 제공합니다.
public void AddCustomFontSource(CustomFontSource source, params object[] args)
Parameters
source
CustomFontSource
사용자 지정 문자 출처 공급자 기능.
args
object
[ ] [ [ ]
그들의 논쟁들