---
title: Aspose.PSD for .NET 20.2 - Ghi chú về Bản phát hành
type: docs
weight: 110
url: /vi/net/aspose-psd-cho-net-20-2-ghi-chu-ve-ban-phat-hanh/
---
|**Key**|**Tóm tắt**|**Danh mục**|
| :- | :- | :- |
|PSDNET-206|Cải thiện khả năng hiển thị văn bản trong màu sắc khác nhau trong Lớp Văn bản|Tính năng|
|PSDNET-369|Hỗ trợ tài nguyên clbl (Tài nguyên lớp chứa thông tin về các yếu tố Blend clipping)|Tính năng|
|PSDNET-274 |Hỗ trợ tài nguyên blwh (Tài nguyên chứa Dữ liệu Lớp Điều chỉnh Đen & Trắng)|Tính năng|
|PSDNET-230|Khả năng xuất Nhóm Lớp sang Jpeg/Png/Tiff/Gif/Bmp/Jpeg2000/Psd/Psb/Pdf|Tính năng|
|PSDNET-372|Hỗ trợ tài nguyên lspf (Chứa cài đặt về Cài đặt Bảo vệ Lớp)|Tính năng|
|PSDNET-370|Hỗ trợ tài nguyên infx (Chứa dữ liệu về Sự kết hợp của các yếu tố nội bộ)|Tính năng|
|PSDNET-251|Tái cấu trúc PsdImage và Layer để thay đổi hành vi biến đổi (Thay đổi kích thước/quay/xén chính xác cho lớp mặt nạ nếu chúng ta biến đổi một lớp riêng lẻ)|Tinh chỉnh|
|PSDNET-276 |Trong một số cài đặt toàn cấu hóa, ảnh raster hình ảnh AI không thể được mở|Sửa lỗi|
|PSDNET-194|Sau khi thực hiện thao tác FlipRotate trên Lớp, Hình ảnh PSD trở nên không đọc được|Sửa lỗi|
|PSDNET-177. |System.ArgumentException trong quá trình tải tệp PSD|Sửa lỗi|
|PSDNET-249|Sau khi sử dụng phương pháp biến đổi cho một lớp duy nhất, lớp đã lưu có ranh giới hoặc một mặt nạ không chính xác|Sửa lỗi|
## **Thay đổi API Công cộng**# **API Thêm vào:**- P:Aspose.PSD.FileFormats.Psd.Layers.LayerMaskDataFull.UserMaskRectangle
- M:Aspose.PSD.FileFormats.Ai.AiDataSection.ReleaseManagedResources
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerGroup.Width
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerGroup.Height
- T:Aspose.PSD.FileFormats.Psd.Layers.AdjustmentLayers.BlackWhiteAdjustmentLayer
- P:Aspose.PSD.FileFormats.Psd.Layers.AdjustmentLayers.BlackWhiteAdjustmentLayer.Reds
- P:Aspose.PSD.FileFormats.Psd.Layers.AdjustmentLayers.BlackWhiteAdjustmentLayer.Yellows
- P:Aspose.PSD.FileFormats.Psd.Layers.AdjustmentLayers.BlackWhiteAdjustmentLayer.Greens
- P:Aspose.PSD.FileFormats.Psd.Layers.AdjustmentLayers.BlackWhiteAdjustmentLayer.Cyans
- P:Aspose.PSD.FileFormats.Psd.Layers.AdjustmentLayers.BlackWhiteAdjustmentLayer.Blues
- P:Aspose.PSD.FileFormats.Psd.Layers.AdjustmentLayers.BlackWhiteAdjustmentLayer.Magentas
- P:Aspose.PSD.FileFormats.Psd.Layers.AdjustmentLayers.BlackWhiteAdjustmentLayer.UseTint
- P:Aspose.PSD.FileFormats.Psd.Layers.AdjustmentLayers.BlackWhiteAdjustmentLayer.BwPresetKind
- P:Aspose.PSD.FileFormats.Psd.Layers.AdjustmentLayers.BlackWhiteAdjustmentLayer.BlackAndWhitePresetFileName
- P:Aspose.PSD.FileFormats.Psd.Layers.AdjustmentLayers.BlackWhiteAdjustmentLayer.TintColor
- P:Aspose.PSD.FileFormats.Psd.Layers.AdjustmentLayers.BlackWhiteAdjustmentLayer.TintColorRed
- P:Aspose.PSD.FileFormats.Psd.Layers.AdjustmentLayers.BlackWhiteAdjustmentLayer.TintColorGreen
- P:Aspose.PSD.FileFormats.Psd.Layers.AdjustmentLayers.BlackWhiteAdjustmentLayer.TintColorBlue
- T:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.BlwhResource
- M:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.BlwhResource.#ctor
- M:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.BlwhResource.Save(Aspose.PSD.StreamContainer,System.Int32)
- F:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.BlwhResource.TypeToolKey
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.BlwhResource.Key
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.BlwhResource.Length
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.BlwhResource.PsdVersion
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.BlwhResource.Reds
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.BlwhResource.Yellows
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.BlwhResource.Greens
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.BlwhResource.Cyans
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.BlwhResource.Blues
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.BlwhResource.Magentas
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.BlwhResource.UseTint
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.BlwhResource.BwPresetKind
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.BlwhResource.BlackAndWhitePresetFileName
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.BlwhResource.TintColor
- M:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.Lr16Resource.#ctor
- P:Aspose.PSD.Xmp.Types.Derived.RenditionClass.DefinedValues
- T:Aspose.PSD.AggregateException
- M:Aspose.PSD.CmykColor.Equals(System.Object)
- T:Aspose.PSD.CompositeException
- T:Aspose.PSD.CoreExceptions.IndexOutOFRangeException
- M:Aspose.PSD.CoreExceptions.IndexOutOFRangeException.#ctor(System.String)
- M:Aspose.PSD.CoreExceptions.IndexOutOFRangeException.#ctor(System.String,System.Exception)
- F:Aspose.PSD.FileFormat.Otg
- T:Aspose.PSD.FileFormats.Jpeg2000.Jpeg2000CustomException
- T:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.CurvResource
- M:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.CurvResource.#ctor(System.Int32)
- M:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.CurvResource.#ctor(System.Byte[])
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.CurvResource.Key
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.CurvResource.Length
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.CurvResource.PsdVersion
- P:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.CurvResource.IsDataStoredDiscretely
- M:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.CurvResource.GetChannelData(System.Int32)
- M:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.CurvResource.GetActiveManager
- M:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.CurvResource.Save(Aspose.PSD.StreamContainer,System.Int32)
- M:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.CurvResource.GetCurveManager
- F:Aspose.PSD.FileFormats.Psd.Layers.LayerResources.CurvResource.TypeToolKey
- T:Aspose.PSD.ImageOptions.TiffOptionsUtils
- M:Aspose.PSD.ImageOptions.TiffOptionsUtils.#ctor
- M:Aspose.PSD.ImageOptions.TiffOptionsUtils.GetValidTagsCount(Aspose.PSD.FileFormats.Tiff.TiffDataType[])
- P:Aspose.PSD.ImageOptionsBase.ProgressEventHandler
- P:Aspose.PSD.LoadOptions.ProgressEventHandler
- M:Aspose.PSD.Matrix.#ctor(Aspose.PSD.Matrix)
- M:Aspose.PSD.Metered.Equals(System.Object)
- T:Aspose.PSD.ProgressEventHandler
- T:Aspose.PSD.ProgressManagement.EventType
- F:Aspose.PSD.ProgressManagement.EventType.RelativeProgress
- F:Aspose.PSD.ProgressManagement.EventType.StageChange
- F:Aspose.PSD.ProgressManagement.EventType.Initialization
- F:Aspose.PSD.ProgressManagement.EventType.PreProcessing
- F:Aspose.PSD.ProgressManagement.EventType.Processing
- F:Aspose.PSD.ProgressManagement.EventType.Finalization
- T:Aspose.PSD.ProgressManagement.ProgressEventHandlerInfo
- P:Aspose.PSD.ProgressManagement.ProgressEventHandlerInfo.Description
- P:Aspose.PSD.ProgressManagement.ProgressEventHandlerInfo.EventType
- P:Aspose.PSD.ProgressManagement.ProgressEventHandlerInfo.MaxValue
- P:Aspose.PSD.ProgressManagement.ProgressEventHandlerInfo.Value
- M:Aspose.PSD.RasterImage.GetSkewAngle
- M:Aspose.PSD.RasterImage.NormalizeAngle
- M:Aspose.PSD.RasterImage.NormalizeAngle(System.Boolean,Aspose.PSD.Color)
**Ví dụ về việc sử dụng:****PSDNET-206. Cải thiện khả năng hiển thị văn bản trong màu sắc khác nhau trong Lớp Văn bản**
**PSDNET-369. Hỗ trợ tài nguyên clbl (Tài nguyên lớp chứa thông tin về các yếu tố Blend clipping)**
voidAssertIsTrue(boolcondition,stringmessage){if(!condition){thrownewFormatException(message);}}stringsourceFileName="SampleForResource.psd";stringdestinationFileName="Output"+sourceFileName;ClblResourceGetClblResource(PsdImageim){foreach(varlayerinim.Layers){foreach(varlayerResourceinlayer.Resources){if(layerResourceisClblResource){return(ClblResource)layerResource;}}}thrownewException("Không tìm thấy ClblResource được chỉ định");}using(PsdImageim=(PsdImage)Image.Load(sourceFileName)){varresource=GetClblResource(im);AssertIsTrue(resource.BlendClippedElements,"ClblResource.BlendClippedElements nên là true");// Test chỉnh sửa và lưu
resource.BlendClippedElements=false;im.Save(destinationFileName);}using(PsdImageim=(PsdImage)Image.Load(destinationFileName)){varresource=GetClblResource(im);AssertIsTrue(!resource.BlendClippedElements,"ClblResource.BlendClippedElements nên thay đổi thành false");}
**PSDNET-274. Hỗ trợ tài nguyên blwh (Tài nguyên chứa Dữ liệu Lớp Điều chỉnh Đen & Trắng)**
conststringActualPropertyValueIsWrongMessage="Giá trị thuộc tính dự kiến không bằng với giá trị thực";voidAssertIsTrue(boolcondition,stringmessage){if(!condition){thrownewFormatException(message);}}voidExampleSupportOfBlwhResource(stringsourceFileName,intreds,intyellows,intgreens,intcyans,intblues,intmagentas,booluseTint,intbwPresetKind,stringbwPresetFileName,doubletintColorRed,doubletintColorGreen,doubletintColorBlue,inttintColor,intnewTintColor){stringdestinationFileName="Output"+sourceFileName;boolisRequiredResourceFound=false;using(PsdImageim=(PsdImage)Image.Load(sourceFileName)){foreach(varlayerinim.Layers){foreach(varlayerResourceinlayer.Resources){if(layerResourceisBlwhResource){varblwhResource=(BlwhResource)layerResource;varblwhLayer=(BlackWhiteAdjustmentLayer)layer;isRequiredResourceFound=true;AssertIsTrue(blwhResource.Reds==reds,ActualPropertyValueIsWrongMessage);AssertIsTrue(blwhResource.Yellows==yellows,ActualPropertyValueIsWrongMessage);AssertIsTrue(blwhResource.Greens==greens,ActualPropertyValueIsWrongMessage);AssertIsTrue(blwhResource.Cyans==cyans,ActualPropertyValueIsWrongMessage);AssertIsTrue(blwhResource.Blues==blues,ActualPropertyValueIsWrongMessage);AssertIsTrue(blwhResource.Magentas==magentas,ActualPropertyValueIsWrongMessage);AssertIsTrue(blwhResource.UseTint==useTint,ActualPropertyValueIsWrongMessage);AssertIsTrue(blwhResource.TintColor==tintColor,ActualPropertyValueIsWrongMessage);AssertIsTrue(blwhResource.BwPresetKind==bwPresetKind,ActualPropertyValueIsWrongMessage);AssertIsTrue(blwhResource.BlackAndWhitePresetFileName==bwPresetFileName,ActualPropertyValueIsWrongMessage);AssertIsTrue(Math.Abs(blwhLayer.TintColorRed-tintColorRed)<1e-6,ActualPropertyValueIsWrongMessage);AssertIsTrue(Math.Abs(blwhLayer.TintColorGreen-tintColorGreen)<1e-6,ActualPropertyValueIsWrongMessage);AssertIsTrue(Math.Abs(blwhLayer.TintColorBlue-tintColorBlue)<1e-6,ActualPropertyValueIsWrongMessage);// Test chỉnh sửa và lưu
blwhResource.Reds=reds-15;blwhResource.Yellows=yellows-15;blwhResource.Greens=greens+15;blwhResource.Cyans=cyans+15;blwhResource.Blues=blues-15;blwhResource.Magentas=magentas-15;blwhResource.UseTint=!useTint;blwhResource.BwPresetKind=4;blwhResource.BlackAndWhitePresetFileName="bwPresetFileName";blwhLayer.TintColorRed=tintColorRed-60;blwhLayer.TintColorGreen=tintColorGreen-60;blwhLayer.TintColorBlue=tintColorBlue-60;im.Save(destinationFileName);break;}}}}AssertIsTrue(isRequiredResourceFound,"Không tìm thấy BlwhResource được chỉ định");isRequiredResourceFound=false;using(PsdImageim=(PsdImage)Image.Load(destinationFileName)){foreach(varlayerinim.Layers){foreach(varlayerResourceinlayer.Resources){if(layerResourceisBlwhResource){varblwhResource=(BlwhResource)layerResource;varblwhLayer=(BlackWhiteAdjustmentLayer)layer;isRequiredResourceFound=true;AssertIsTrue(blwhResource.Reds==reds-15,ActualPropertyValueIsWrongMessage);AssertIsTrue(blwhResource.Yellows==yellows-15,ActualPropertyValueIsWrongMessage);AssertIsTrue(blwhResource.Greens==greens+15,ActualPropertyValueIsWrongMessage);AssertIsTrue(blwhResource.Cyans==cyans+15,ActualPropertyValueIsWrongMessage);AssertIsTrue(blwhResource.Blues==blues-15,ActualPropertyValueIsWrongMessage);AssertIsTrue(blwhResource.Magentas==magentas-15,ActualPropertyValueIsWrongMessage);AssertIsTrue(blwhResource.UseTint==!useTint,ActualPropertyValueIsWrongMessage);AssertIsTrue(blwhResource.TintColor==newTintColor,ActualPropertyValueIsWrongMessage);AssertIsTrue(blwhResource.BwPresetKind==4,ActualPropertyValueIsWrongMessage);AssertIsTrue(blwhResource.BlackAndWhitePresetFileName=="bwPresetFileName",ActualPropertyValueIsWrongMessage);AssertIsTrue(Math.Abs(blwhLayer.TintColorRed-tintColorRed+60)<1e-6,ActualPropertyValueIsWrongMessage);AssertIsTrue(Math.Abs(blwhLayer.TintColorGreen-tintColorGreen+60)<1e-6,ActualPropertyValueIsWrongMessage);AssertIsTrue(Math.Abs(blwhLayer.TintColorBlue-tintColorBlue+60)<1e-6,ActualPropertyValueIsWrongMessage);break;}}}}AssertIsTrue(isRequiredResourceFound,"Không tìm thấy BlwhResource được chỉ định");}ExampleSupportOfBlwhResource("BlackWhiteAdjustmentLayerStripesMask.psd",0x28,0x3c,0x28,0x3c,0x14,0x50,false,1,"\0",225.00045776367188,211.00067138671875,179.00115966796875,-1977421,-5925001);ExampleSupportOfBlwhResource("BlackWhiteAdjustmentLayerStripesMask2.psd",0x80,0x40,0x20,0x10,0x08,0x04,true,4,"\0",239.996337890625,127.998046875,63.9990234375,-1015744,-4963324);Console.WriteLine("Cập nhật BlwhResource hoạt động như mong đợi. Nhấn bất kỳ phím nào.");
**PSDNET-230. Khả năng xuất Nhóm Lớp sang Jpeg/Png/Tiff/Gif/Bmp/Jpeg2000/Psd/Psb/Pdf**
using(varpsdImage=(PsdImage)Image.Load("1.psd")){// folder with background
LayerGroupbg_folder=(LayerGroup)psdImage.Layers[0];// folder with content
LayerGroupcontent_folder=(LayerGroup)psdImage.Layers[4];bg_folder.Save("background.png",newPngOptions());content_folder.Save("content.png",newPngOptions());}
` `**PSDNET-372. Hỗ trợ tài nguyên lspf (Chứa cài đặt về Cài đặt Bảo vệ Lớp)**
conststringActualPropertyValueIsWrongMessage="Giá trị thuộc tính dự kiến không bằng với giá trị thực";voidAssertIsTrue(boolcondition,stringmessage){if(!condition){thrownewFormatException(message);}}stringsourceFileName="SampleForResource.psd";stringdestinationFileName="Output"+sourceFileName;boolisRequiredResourceFound=false;using(PsdImageim=(PsdImage)Image.Load(sourceFileName)){```.....```
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.