diff --git a/entry/src/main/ets/pages/DownsamplingPage.ets b/entry/src/main/ets/pages/DownsamplingPage.ets index 7215f85..1715e5f 100644 --- a/entry/src/main/ets/pages/DownsamplingPage.ets +++ b/entry/src/main/ets/pages/DownsamplingPage.ets @@ -12,8 +12,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { ImageKnifeComponent, ImageKnifeOption } from '@ohos/libraryimageknife' +import { FitCenter, ImageKnifeComponent, + ImageKnifeData, + ImageKnifeOption, RequestOption } from '@ohos/libraryimageknife' import { BusinessError } from '@ohos.base' +import { DownsampleNone } from '@ohos/imageknife/src/main/ets/components/imageknife/Downsampling/DownsampleStartegy'; + let mRotate: number = 0; let mUrl = $r('app.media.pngSample'); @Entry