!118 修复图片圆角图形变换导致抗锯齿、ScaleType失效

Merge pull request !118 from zgf/master
This commit is contained in:
openharmony_ci 2024-02-26 07:09:50 +00:00 committed by Gitee
commit 52a43f42bc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
7 changed files with 17 additions and 4 deletions

View File

@ -1,3 +1,6 @@
## 2.1.2-rc.7
- 修复图片圆角图形变换导致抗锯齿、ScaleType失效
## 2.1.2-rc.6
- 修复手机调节显示大小时图片消失
- imageKnife防盗链header请求头属性设置

View File

@ -4,7 +4,7 @@
"name": "entry",
"description": "example description",
"repository": {},
"version": "2.1.2-rc.6",
"version": "2.1.2-rc.7",
"dependencies": {
"@ohos/libraryimageknife": "file:../sharedlibrary",
"@ohos/sharedlibrary2": "file:../sharedlibrary2",

View File

@ -53,6 +53,7 @@
},
{
"name": "ohos.permission.MEDIA_LOCATION",
"reason": "$string:app_permission_MEDIA_LOCATION",
"usedScene": {
"abilities": [
"EntryAbility"
@ -62,6 +63,7 @@
},
{
"name": "ohos.permission.READ_MEDIA",
"reason": "$string:app_permission_READ_MEDIA",
"usedScene": {
"abilities": [
"EntryAbility"

View File

@ -112,6 +112,14 @@
{
"name": "image_pixel",
"value": "马赛克处理"
},
{
"name": "app_permission_MEDIA_LOCATION",
"value": "获取媒体图片"
},
{
"name": "app_permission_READ_MEDIA",
"value": "读媒体图片"
}
]
}

View File

@ -14,7 +14,7 @@
"main": "index.ets",
"repository": "https://gitee.com/openharmony-tpc/ImageKnife",
"type": "module",
"version": "2.1.2-rc.6",
"version": "2.1.2-rc.7",
"dependencies": {
"pako": "^2.1.0",
"@ohos/disklrucache": "^2.0.2-rc.0",

View File

@ -79,7 +79,7 @@ export class RoundedCornersTransformation implements BaseTransform<PixelMap> {
if (pixelMapHeight < targetHeight) {
targetHeight = pixelMapHeight;
}
this.transformPixelMap(imageSource, targetWidth, targetHeight, func);
this.transformPixelMap(imageSource, pixelMapWidth, pixelMapHeight, func);
}})
}

View File

@ -6,6 +6,6 @@
"name": "imageknife",
"description": "example description",
"repository": {},
"version": "2.1.2-rc.6",
"version": "2.1.2-rc.7",
"dependencies": {}
}