demo报错修改
This commit is contained in:
parent
5d9a3f521b
commit
b83413cf49
|
@ -19,6 +19,8 @@ import { BusinessError } from '@ohos.base'
|
||||||
import worker, { ErrorEvent, MessageEvents } from '@ohos.worker';
|
import worker, { ErrorEvent, MessageEvents } from '@ohos.worker';
|
||||||
import taskpool from '@ohos.taskpool'
|
import taskpool from '@ohos.taskpool'
|
||||||
import { LogUtil } from '../LogUtil'
|
import { LogUtil } from '../LogUtil'
|
||||||
|
import { RequestOption } from '../../RequestOption'
|
||||||
|
import { Downsampler } from '../../Downsampling/Downsampler'
|
||||||
|
|
||||||
export interface senderData {
|
export interface senderData {
|
||||||
type: string,
|
type: string,
|
||||||
|
@ -49,8 +51,8 @@ export class GIFParseImpl implements IParseGif {
|
||||||
let hValue: number = 0
|
let hValue: number = 0
|
||||||
let wValue: number = 0
|
let wValue: number = 0
|
||||||
imageSource.getImageInfo().then((value) => {
|
imageSource.getImageInfo().then((value) => {
|
||||||
hValue = Math.round(value.size, height);
|
hValue = Math.round(value.size. height);
|
||||||
wValue = Math.round(value.size, height);
|
wValue = Math.round(value.size.height);
|
||||||
console.log('原始宽高:', JSON.stringify(value.size))
|
console.log('原始宽高:', JSON.stringify(value.size))
|
||||||
console.log('classType', JSON.stringify(_request?.downsampType.getName()))
|
console.log('classType', JSON.stringify(_request?.downsampType.getName()))
|
||||||
console.log('classType2', hValue, wValue)
|
console.log('classType2', hValue, wValue)
|
||||||
|
|
Loading…
Reference in New Issue