降采样代码简化
Signed-off-by: tsm <tianshuangming@h-partners.com>
This commit is contained in:
parent
e086bb8630
commit
9e2af039e1
|
@ -35,6 +35,7 @@ import {
|
|||
} from './model/ImageKnifeData'
|
||||
import { BusinessError } from '@kit.BasicServicesKit';
|
||||
import { ImageKnifeLoader } from './ImageKnifeLoader'
|
||||
import { DownsampleStrategy } from './downsampling/DownsampleStartegy';
|
||||
|
||||
|
||||
export class ImageKnifeDispatcher {
|
||||
|
@ -186,7 +187,7 @@ export class ImageKnifeDispatcher {
|
|||
resName: resName == "" ? undefined : resName,
|
||||
targetWidth: currentRequest.componentWidth,
|
||||
targetHeight: currentRequest.componentHeight,
|
||||
downsampType: currentRequest.imageKnifeOption.downsampleOf,
|
||||
downsampType: currentRequest.imageKnifeOption.downsampleOf==undefined?DownsampleStrategy.NONE:currentRequest.imageKnifeOption.downsampleOf,
|
||||
}
|
||||
|
||||
if(request.customGetImage == undefined) {
|
||||
|
|
|
@ -107,6 +107,6 @@ export interface RequestJobRequest {
|
|||
resName?: string,
|
||||
targetWidth: number
|
||||
targetHeight: number
|
||||
downsampType?: DownsampleStrategy
|
||||
downsampType: DownsampleStrategy
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue