1/* 2 * Copyright (c) 2021-2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/** 17 * @file 18 * @kit ArkUI 19 */ 20 21/** 22 * Use the DrawableDescriptor class to get drawable image. 23 * 24 * @syscap SystemCapability.ArkUI.ArkUI.Full 25 * @since 10 26 */ 27/** 28 * Use the DrawableDescriptor class to get drawable image. 29 * 30 * @typedef { import ('../api/@ohos.arkui.drawableDescriptor').DrawableDescriptor } DrawableDescriptor 31 * @syscap SystemCapability.ArkUI.ArkUI.Full 32 * @atomicservice 33 * @since 11 34 */ 35declare type DrawableDescriptor = import ('../api/@ohos.arkui.drawableDescriptor').DrawableDescriptor; 36 37/** 38 * Import the DrawingColorFilter type object for image color filter setting. 39 * 40 * @typedef DrawingColorFilter 41 * @syscap SystemCapability.ArkUI.ArkUI.Full 42 * @crossplatform 43 * @atomicservice 44 * @since 12 45 */ 46declare type DrawingColorFilter = import('../api/@ohos.graphics.drawing').default.ColorFilter; 47 48/** 49 * Enumerates all the levels available for the image resolution quality. 50 * 51 * @typedef {import('../api/@ohos.multimedia.image').default.ResolutionQuality} ResolutionQuality 52 * @syscap SystemCapability.ArkUI.ArkUI.Full 53 * @systemapi 54 * @since 12 55 */ 56declare type ResolutionQuality = import('../api/@ohos.multimedia.image').default.ResolutionQuality; 57 58/** 59 * Lattice for dividing an image into grids. 60 * 61 * @typedef { import('../api/@ohos.graphics.drawing').default.Lattice } Lattice 62 * @syscap SystemCapability.ArkUI.ArkUI.Full 63 * @crossplatform 64 * @atomicservice 65 * @since 12 66 */ 67declare type DrawingLattice = import('../api/@ohos.graphics.drawing').default.Lattice; 68 69/** 70 * @enum { number } 71 * @syscap SystemCapability.ArkUI.ArkUI.Full 72 * @since 7 73 */ 74/** 75 * @enum { number } 76 * @syscap SystemCapability.ArkUI.ArkUI.Full 77 * @form 78 * @since 9 79 */ 80/** 81 * @enum { number } 82 * @syscap SystemCapability.ArkUI.ArkUI.Full 83 * @crossplatform 84 * @form 85 * @since 10 86 */ 87/** 88 * @enum { number } 89 * @syscap SystemCapability.ArkUI.ArkUI.Full 90 * @crossplatform 91 * @form 92 * @atomicservice 93 * @since 11 94 */ 95declare enum ImageRenderMode { 96 /** 97 * Render according to the original image, including colors. 98 * 99 * @syscap SystemCapability.ArkUI.ArkUI.Full 100 * @since 7 101 */ 102 /** 103 * Render according to the original image, including colors. 104 * 105 * @syscap SystemCapability.ArkUI.ArkUI.Full 106 * @form 107 * @since 9 108 */ 109 /** 110 * Render according to the original image, including colors. 111 * 112 * @syscap SystemCapability.ArkUI.ArkUI.Full 113 * @crossplatform 114 * @form 115 * @since 10 116 */ 117 /** 118 * Render according to the original image, including colors. 119 * 120 * @syscap SystemCapability.ArkUI.ArkUI.Full 121 * @crossplatform 122 * @form 123 * @atomicservice 124 * @since 11 125 */ 126 Original, 127 128 /** 129 * Render the image as a template image, ignoring the color information of the image. 130 * 131 * @syscap SystemCapability.ArkUI.ArkUI.Full 132 * @since 7 133 */ 134 /** 135 * Render the image as a template image, ignoring the color information of the image. 136 * 137 * @syscap SystemCapability.ArkUI.ArkUI.Full 138 * @form 139 * @since 9 140 */ 141 /** 142 * Render the image as a template image, ignoring the color information of the image. 143 * 144 * @syscap SystemCapability.ArkUI.ArkUI.Full 145 * @crossplatform 146 * @form 147 * @since 10 148 */ 149 /** 150 * Render the image as a template image, ignoring the color information of the image. 151 * 152 * @syscap SystemCapability.ArkUI.ArkUI.Full 153 * @crossplatform 154 * @form 155 * @atomicservice 156 * @since 11 157 */ 158 Template, 159} 160 161/** 162 * Specify image's content. 163 * 164 * @enum { number } 165 * @syscap SystemCapability.ArkUI.ArkUI.Full 166 * @crossplatform 167 * @form 168 * @atomicservice 169 * @since 12 170 */ 171declare enum ImageContent { 172 /** 173 * Make image empty. 174 * 175 * @syscap SystemCapability.ArkUI.ArkUI.Full 176 * @crossplatform 177 * @form 178 * @atomicservice 179 * @since 12 180 */ 181 EMPTY = 0, 182} 183 184/** 185 * @enum { number } 186 * @syscap SystemCapability.ArkUI.ArkUI.Full 187 * @atomicservice 188 * @since 12 189 */ 190declare enum DynamicRangeMode { 191 /** 192 * Allow image content to use an unrestricted extended range. 193 * 194 * @syscap SystemCapability.ArkUI.ArkUI.Full 195 * @atomicservice 196 * @since 12 197 */ 198 HIGH = 0, 199 200 /** 201 * Allow image content to use some extended range. 202 * 203 * @syscap SystemCapability.ArkUI.ArkUI.Full 204 * @atomicservice 205 * @since 12 206 */ 207 CONSTRAINT = 1, 208 209 /** 210 * Restrict the image content dynamic range to the standard range. 211 * 212 * @syscap SystemCapability.ArkUI.ArkUI.Full 213 * @atomicservice 214 * @since 12 215 */ 216 STANDARD = 2, 217} 218 219/** 220 * @enum { number } 221 * @syscap SystemCapability.ArkUI.ArkUI.Full 222 * @since 7 223 */ 224/** 225 * @enum { number } 226 * @syscap SystemCapability.ArkUI.ArkUI.Full 227 * @form 228 * @since 9 229 */ 230/** 231 * @enum { number } 232 * @syscap SystemCapability.ArkUI.ArkUI.Full 233 * @crossplatform 234 * @form 235 * @since 10 236 */ 237/** 238 * @enum { number } 239 * @syscap SystemCapability.ArkUI.ArkUI.Full 240 * @crossplatform 241 * @form 242 * @atomicservice 243 * @since 11 244 */ 245declare enum ImageInterpolation { 246 /** 247 * Do not use interpolated image data. 248 * 249 * @syscap SystemCapability.ArkUI.ArkUI.Full 250 * @since 7 251 */ 252 /** 253 * Do not use interpolated image data. 254 * 255 * @syscap SystemCapability.ArkUI.ArkUI.Full 256 * @form 257 * @since 9 258 */ 259 /** 260 * Do not use interpolated image data. 261 * 262 * @syscap SystemCapability.ArkUI.ArkUI.Full 263 * @crossplatform 264 * @form 265 * @since 10 266 */ 267 /** 268 * Do not use interpolated image data. 269 * 270 * @syscap SystemCapability.ArkUI.ArkUI.Full 271 * @crossplatform 272 * @form 273 * @atomicservice 274 * @since 11 275 */ 276 None, 277 278 /** 279 * Low usage of interpolated image data. 280 * 281 * @syscap SystemCapability.ArkUI.ArkUI.Full 282 * @since 7 283 */ 284 /** 285 * Low usage of interpolated image data. 286 * 287 * @syscap SystemCapability.ArkUI.ArkUI.Full 288 * @form 289 * @since 9 290 */ 291 /** 292 * Low usage of interpolated image data. 293 * 294 * @syscap SystemCapability.ArkUI.ArkUI.Full 295 * @crossplatform 296 * @form 297 * @since 10 298 */ 299 /** 300 * Low usage of interpolated image data. 301 * 302 * @syscap SystemCapability.ArkUI.ArkUI.Full 303 * @crossplatform 304 * @form 305 * @atomicservice 306 * @since 11 307 */ 308 Low, 309 310 /** 311 * Interpolated image data is used moderately. 312 * 313 * @syscap SystemCapability.ArkUI.ArkUI.Full 314 * @since 7 315 */ 316 /** 317 * Interpolated image data is used moderately. 318 * 319 * @syscap SystemCapability.ArkUI.ArkUI.Full 320 * @form 321 * @since 9 322 */ 323 /** 324 * Interpolated image data is used moderately. 325 * 326 * @syscap SystemCapability.ArkUI.ArkUI.Full 327 * @crossplatform 328 * @form 329 * @since 10 330 */ 331 /** 332 * Interpolated image data is used moderately. 333 * 334 * @syscap SystemCapability.ArkUI.ArkUI.Full 335 * @crossplatform 336 * @form 337 * @atomicservice 338 * @since 11 339 */ 340 Medium, 341 342 /** 343 * High usage of interpolated image data may affect the speed of image rendering. 344 * 345 * @syscap SystemCapability.ArkUI.ArkUI.Full 346 * @since 7 347 */ 348 /** 349 * High usage of interpolated image data may affect the speed of image rendering. 350 * 351 * @syscap SystemCapability.ArkUI.ArkUI.Full 352 * @form 353 * @since 9 354 */ 355 /** 356 * High usage of interpolated image data may affect the speed of image rendering. 357 * 358 * @syscap SystemCapability.ArkUI.ArkUI.Full 359 * @crossplatform 360 * @form 361 * @since 10 362 */ 363 /** 364 * High usage of interpolated image data may affect the speed of image rendering. 365 * 366 * @syscap SystemCapability.ArkUI.ArkUI.Full 367 * @crossplatform 368 * @form 369 * @atomicservice 370 * @since 11 371 */ 372 High, 373} 374 375/** 376 * @enum { number } 377 * @syscap SystemCapability.ArkUI.ArkUI.Full 378 * @crossplatform 379 * @atomicservice 380 * @since 14 381 */ 382declare enum ImageRotateOrientation { 383 /** 384 * Rotate according to the image rotation 385 * 386 * @syscap SystemCapability.ArkUI.ArkUI.Full 387 * @crossplatform 388 * @atomicservice 389 * @since 14 390 */ 391 AUTO = 0, 392 393 /** 394 * Ignore the rotation of the image 395 * 396 * @syscap SystemCapability.ArkUI.ArkUI.Full 397 * @crossplatform 398 * @atomicservice 399 * @since 14 400 */ 401 UP = 1, 402 403 /** 404 * Based on image rotation, rotate clockwise 90 degrees 405 * 406 * @syscap SystemCapability.ArkUI.ArkUI.Full 407 * @crossplatform 408 * @atomicservice 409 * @since 14 410 */ 411 RIGHT = 2, 412 413 /** 414 * Based on image rotation, rotate clockwise 180 degrees 415 * 416 * @syscap SystemCapability.ArkUI.ArkUI.Full 417 * @crossplatform 418 * @atomicservice 419 * @since 14 420 */ 421 DOWN = 3, 422 423 /** 424 * Based on image rotation, rotate clockwise 270 degrees 425 * 426 * @syscap SystemCapability.ArkUI.ArkUI.Full 427 * @crossplatform 428 * @atomicservice 429 * @since 14 430 */ 431 LEFT = 4, 432} 433 434/** 435 * @interface ImageInterface 436 * @syscap SystemCapability.ArkUI.ArkUI.Full 437 * @since 7 438 */ 439/** 440 * @interface ImageInterface 441 * @syscap SystemCapability.ArkUI.ArkUI.Full 442 * @form 443 * @since 9 444 */ 445/** 446 * @interface ImageInterface 447 * @syscap SystemCapability.ArkUI.ArkUI.Full 448 * @crossplatform 449 * @form 450 * @since 10 451 */ 452/** 453 * @interface ImageInterface 454 * @syscap SystemCapability.ArkUI.ArkUI.Full 455 * @crossplatform 456 * @form 457 * @atomicservice 458 * @since 11 459 */ 460interface ImageInterface { 461 /** 462 * Set src to obtain images. 463 * 464 * @param { PixelMap | ResourceStr | DrawableDescriptor } src 465 * @returns { ImageAttribute } 466 * @syscap SystemCapability.ArkUI.ArkUI.Full 467 * @since 7 468 */ 469 /** 470 * Set src to obtain images 471 * 472 * @param { PixelMap | ResourceStr | DrawableDescriptor } src 473 * @returns { ImageAttribute } 474 * @syscap SystemCapability.ArkUI.ArkUI.Full 475 * @form 476 * @since 9 477 */ 478 /** 479 * Set src to obtain images 480 * 481 * @param { PixelMap | ResourceStr | DrawableDescriptor } src 482 * @returns { ImageAttribute } 483 * @syscap SystemCapability.ArkUI.ArkUI.Full 484 * @crossplatform 485 * @form 486 * @since 10 487 */ 488 /** 489 * Set src to obtain images 490 * 491 * @param { PixelMap | ResourceStr | DrawableDescriptor } src 492 * @returns { ImageAttribute } 493 * @syscap SystemCapability.ArkUI.ArkUI.Full 494 * @crossplatform 495 * @form 496 * @atomicservice 497 * @since 11 498 */ 499 (src: PixelMap | ResourceStr | DrawableDescriptor): ImageAttribute; 500 501 /** 502 * Set src to obtain images 503 * 504 * @param { PixelMap | ResourceStr | DrawableDescriptor | ImageContent } src 505 * @returns { ImageAttribute } 506 * @syscap SystemCapability.ArkUI.ArkUI.Full 507 * @crossplatform 508 * @form 509 * @atomicservice 510 * @since 12 511 */ 512 (src: PixelMap | ResourceStr | DrawableDescriptor | ImageContent): ImageAttribute; 513 514 /** 515 * Set src and ai options to obtain images 516 * 517 * @param { PixelMap | ResourceStr | DrawableDescriptor } src 518 * @param { ImageAIOptions } imageAIOptions 519 * @returns { ImageAttribute } 520 * @syscap SystemCapability.ArkUI.ArkUI.Full 521 * @atomicservice 522 * @since 12 523 */ 524 (src: PixelMap | ResourceStr | DrawableDescriptor, imageAIOptions: ImageAIOptions): ImageAttribute; 525} 526 527/** 528 * @extends CommonMethod<ImageAttribute> 529 * @syscap SystemCapability.ArkUI.ArkUI.Full 530 * @since 7 531 */ 532/** 533 * @extends CommonMethod<ImageAttribute> 534 * @syscap SystemCapability.ArkUI.ArkUI.Full 535 * @form 536 * @since 9 537 */ 538/** 539 * @extends CommonMethod<ImageAttribute> 540 * @syscap SystemCapability.ArkUI.ArkUI.Full 541 * @crossplatform 542 * @form 543 * @since 10 544 */ 545/** 546 * @extends CommonMethod<ImageAttribute> 547 * @syscap SystemCapability.ArkUI.ArkUI.Full 548 * @crossplatform 549 * @form 550 * @atomicservice 551 * @since 11 552 */ 553declare class ImageAttribute extends CommonMethod<ImageAttribute> { 554 /** 555 * Placeholder displayed on load 556 * 557 * @param { string | Resource } value 558 * @returns { ImageAttribute } 559 * @syscap SystemCapability.ArkUI.ArkUI.Full 560 * @since 7 561 */ 562 /** 563 * Placeholder displayed on load 564 * 565 * @param { string | Resource } value 566 * @returns { ImageAttribute } 567 * @syscap SystemCapability.ArkUI.ArkUI.Full 568 * @form 569 * @since 9 570 */ 571 /** 572 * Placeholder displayed on load 573 * 574 * @param { string | Resource } value 575 * @returns { ImageAttribute } 576 * @syscap SystemCapability.ArkUI.ArkUI.Full 577 * @crossplatform 578 * @form 579 * @since 10 580 */ 581 /** 582 * Placeholder displayed on load 583 * 584 * @param { string | Resource } value 585 * @returns { ImageAttribute } 586 * @syscap SystemCapability.ArkUI.ArkUI.Full 587 * @crossplatform 588 * @form 589 * @atomicservice 590 * @since 11 591 */ 592 /** 593 * Placeholder displayed on load 594 * 595 * @param { string | Resource | PixelMap } value 596 * @returns { ImageAttribute } 597 * @syscap SystemCapability.ArkUI.ArkUI.Full 598 * @crossplatform 599 * @form 600 * @atomicservice 601 * @since 12 602 */ 603 alt(value: string | Resource | PixelMap): ImageAttribute; 604 605 /** 606 * match Text Direction 607 * 608 * @param { boolean } value 609 * @returns { ImageAttribute } 610 * @syscap SystemCapability.ArkUI.ArkUI.Full 611 * @since 7 612 */ 613 /** 614 * match Text Direction 615 * 616 * @param { boolean } value 617 * @returns { ImageAttribute } 618 * @syscap SystemCapability.ArkUI.ArkUI.Full 619 * @form 620 * @since 9 621 */ 622 /** 623 * match Text Direction 624 * 625 * @param { boolean } value 626 * @returns { ImageAttribute } 627 * @syscap SystemCapability.ArkUI.ArkUI.Full 628 * @crossplatform 629 * @form 630 * @since 10 631 */ 632 /** 633 * match Text Direction 634 * 635 * @param { boolean } value 636 * @returns { ImageAttribute } 637 * @syscap SystemCapability.ArkUI.ArkUI.Full 638 * @crossplatform 639 * @form 640 * @atomicservice 641 * @since 11 642 */ 643 matchTextDirection(value: boolean): ImageAttribute; 644 645 /** 646 * Sets whether the display size of the image follows the source size. 647 * 648 * @param { boolean } value 649 * @returns { ImageAttribute } 650 * @syscap SystemCapability.ArkUI.ArkUI.Full 651 * @since 7 652 */ 653 /** 654 * Sets whether the display size of the image follows the source size. 655 * 656 * @param { boolean } value 657 * @returns { ImageAttribute } 658 * @syscap SystemCapability.ArkUI.ArkUI.Full 659 * @form 660 * @since 9 661 */ 662 /** 663 * Sets whether the display size of the image follows the source size. 664 * 665 * @param { boolean } value 666 * @returns { ImageAttribute } 667 * @syscap SystemCapability.ArkUI.ArkUI.Full 668 * @crossplatform 669 * @form 670 * @since 10 671 */ 672 /** 673 * Sets whether the display size of the image follows the source size. 674 * 675 * @param { boolean } value 676 * @returns { ImageAttribute } 677 * @syscap SystemCapability.ArkUI.ArkUI.Full 678 * @crossplatform 679 * @form 680 * @atomicservice 681 * @since 11 682 */ 683 fitOriginalSize(value: boolean): ImageAttribute; 684 685 /** 686 * fill Color 687 * 688 * @param { ResourceColor } value 689 * @returns { ImageAttribute } 690 * @syscap SystemCapability.ArkUI.ArkUI.Full 691 * @since 7 692 */ 693 /** 694 * fill Color 695 * 696 * @param { ResourceColor } value 697 * @returns { ImageAttribute } 698 * @syscap SystemCapability.ArkUI.ArkUI.Full 699 * @form 700 * @since 9 701 */ 702 /** 703 * fill Color 704 * 705 * @param { ResourceColor } value 706 * @returns { ImageAttribute } 707 * @syscap SystemCapability.ArkUI.ArkUI.Full 708 * @crossplatform 709 * @form 710 * @since 10 711 */ 712 /** 713 * fill Color 714 * 715 * @param { ResourceColor } value 716 * @returns { ImageAttribute } 717 * @syscap SystemCapability.ArkUI.ArkUI.Full 718 * @crossplatform 719 * @form 720 * @atomicservice 721 * @since 11 722 */ 723 fillColor(value: ResourceColor): ImageAttribute; 724 725 /** 726 * Sets the zoom type of an image. 727 * 728 * @param { ImageFit } value 729 * @returns { ImageAttribute } 730 * @syscap SystemCapability.ArkUI.ArkUI.Full 731 * @since 7 732 */ 733 /** 734 * Sets the zoom type of an image. 735 * 736 * @param { ImageFit } value 737 * @returns { ImageAttribute } 738 * @syscap SystemCapability.ArkUI.ArkUI.Full 739 * @form 740 * @since 9 741 */ 742 /** 743 * Sets the zoom type of an image. 744 * 745 * @param { ImageFit } value 746 * @returns { ImageAttribute } 747 * @syscap SystemCapability.ArkUI.ArkUI.Full 748 * @crossplatform 749 * @form 750 * @since 10 751 */ 752 /** 753 * Sets the zoom type of an image. 754 * 755 * @param { ImageFit } value 756 * @returns { ImageAttribute } 757 * @syscap SystemCapability.ArkUI.ArkUI.Full 758 * @crossplatform 759 * @form 760 * @atomicservice 761 * @since 11 762 */ 763 objectFit(value: ImageFit): ImageAttribute; 764 765 /** 766 * Set the repeat style of the picture 767 * 768 * @param { ImageRepeat } value 769 * @returns { ImageAttribute } 770 * @syscap SystemCapability.ArkUI.ArkUI.Full 771 * @since 7 772 */ 773 /** 774 * Set the repeat style of the picture 775 * 776 * @param { ImageRepeat } value 777 * @returns { ImageAttribute } 778 * @syscap SystemCapability.ArkUI.ArkUI.Full 779 * @form 780 * @since 9 781 */ 782 /** 783 * Set the repeat style of the picture 784 * 785 * @param { ImageRepeat } value 786 * @returns { ImageAttribute } 787 * @syscap SystemCapability.ArkUI.ArkUI.Full 788 * @crossplatform 789 * @form 790 * @since 10 791 */ 792 /** 793 * Set the repeat style of the picture 794 * 795 * @param { ImageRepeat } value 796 * @returns { ImageAttribute } 797 * @syscap SystemCapability.ArkUI.ArkUI.Full 798 * @crossplatform 799 * @form 800 * @atomicservice 801 * @since 11 802 */ 803 objectRepeat(value: ImageRepeat): ImageAttribute; 804 805 /** 806 * Set the auto style of the picture 807 * 808 * @param { boolean } value 809 * @returns { ImageAttribute } 810 * @syscap SystemCapability.ArkUI.ArkUI.Full 811 * @since 7 812 */ 813 /** 814 * Set the auto style of the picture 815 * 816 * @param { boolean } value 817 * @returns { ImageAttribute } 818 * @syscap SystemCapability.ArkUI.ArkUI.Full 819 * @form 820 * @since 9 821 */ 822 /** 823 * Set the auto style of the picture 824 * 825 * @param { boolean } value 826 * @returns { ImageAttribute } 827 * @syscap SystemCapability.ArkUI.ArkUI.Full 828 * @crossplatform 829 * @form 830 * @since 10 831 */ 832 /** 833 * Set the auto style of the picture 834 * 835 * @param { boolean } value 836 * @returns { ImageAttribute } 837 * @syscap SystemCapability.ArkUI.ArkUI.Full 838 * @crossplatform 839 * @form 840 * @atomicservice 841 * @since 11 842 */ 843 autoResize(value: boolean): ImageAttribute; 844 845 /** 846 * Sets the image rendering mode. 847 * 848 * @param { ImageRenderMode } value 849 * @returns { ImageAttribute } 850 * @syscap SystemCapability.ArkUI.ArkUI.Full 851 * @since 7 852 */ 853 /** 854 * Sets the image rendering mode. 855 * 856 * @param { ImageRenderMode } value 857 * @returns { ImageAttribute } 858 * @syscap SystemCapability.ArkUI.ArkUI.Full 859 * @form 860 * @since 9 861 */ 862 /** 863 * Sets the image rendering mode. 864 * 865 * @param { ImageRenderMode } value 866 * @returns { ImageAttribute } 867 * @syscap SystemCapability.ArkUI.ArkUI.Full 868 * @crossplatform 869 * @form 870 * @since 10 871 */ 872 /** 873 * Sets the image rendering mode. 874 * 875 * @param { ImageRenderMode } value 876 * @returns { ImageAttribute } 877 * @syscap SystemCapability.ArkUI.ArkUI.Full 878 * @crossplatform 879 * @form 880 * @atomicservice 881 * @since 11 882 */ 883 renderMode(value: ImageRenderMode): ImageAttribute; 884 885 /** 886 * Set dynamic range mode of image. 887 * 888 * @param { DynamicRangeMode } value - Indicates the resizable options. 889 * @returns { ImageAttribute } Returns the instance of the ImageAttribute. 890 * @syscap SystemCapability.ArkUI.ArkUI.Full 891 * @atomicservice 892 * @since 12 893 */ 894 dynamicRangeMode(value: DynamicRangeMode): ImageAttribute; 895 896 /** 897 * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image. 898 * 899 * @param { ImageInterpolation } value 900 * @returns { ImageAttribute } 901 * @syscap SystemCapability.ArkUI.ArkUI.Full 902 * @since 7 903 */ 904 /** 905 * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image. 906 * 907 * @param { ImageInterpolation } value 908 * @returns { ImageAttribute } 909 * @syscap SystemCapability.ArkUI.ArkUI.Full 910 * @form 911 * @since 9 912 */ 913 /** 914 * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image. 915 * 916 * @param { ImageInterpolation } value 917 * @returns { ImageAttribute } 918 * @syscap SystemCapability.ArkUI.ArkUI.Full 919 * @crossplatform 920 * @form 921 * @since 10 922 */ 923 /** 924 * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image. 925 * 926 * @param { ImageInterpolation } value 927 * @returns { ImageAttribute } 928 * @syscap SystemCapability.ArkUI.ArkUI.Full 929 * @crossplatform 930 * @form 931 * @atomicservice 932 * @since 11 933 */ 934 interpolation(value: ImageInterpolation): ImageAttribute; 935 936 /** 937 * Specifies the picture decoding size. 938 * The original picture is decoded into a picture of a specified size. The unit of the number type is px. 939 * 940 * @param { object } value 941 * @returns { ImageAttribute } 942 * @syscap SystemCapability.ArkUI.ArkUI.Full 943 * @since 7 944 */ 945 /** 946 * Specifies the picture decoding size. 947 * The original picture is decoded into a picture of a specified size. The unit of the number type is px. 948 * 949 * @param { object } value 950 * @returns { ImageAttribute } 951 * @syscap SystemCapability.ArkUI.ArkUI.Full 952 * @form 953 * @since 9 954 */ 955 /** 956 * Specifies the picture decoding size. 957 * The original picture is decoded into a picture of a specified size. The unit of the number type is px. 958 * 959 * @param { object } value 960 * @returns { ImageAttribute } 961 * @syscap SystemCapability.ArkUI.ArkUI.Full 962 * @crossplatform 963 * @form 964 * @since 10 965 */ 966 /** 967 * Specifies the picture decoding size. 968 * The original picture is decoded into a picture of a specified size. The unit of the number type is px. 969 * 970 * @param { object } value 971 * @returns { ImageAttribute } 972 * @syscap SystemCapability.ArkUI.ArkUI.Full 973 * @crossplatform 974 * @form 975 * @atomicservice 976 * @since 11 977 */ 978 sourceSize(value: { width: number; height: number }): ImageAttribute; 979 980 /** 981 * Sets the synchronous or asynchronous mode for image loading. 982 * The default parameter type is bool, and the default value is false. 983 * 984 * @param { boolean } value 985 * @returns { ImageAttribute } 986 * @syscap SystemCapability.ArkUI.ArkUI.Full 987 * @since 8 988 */ 989 /** 990 * Sets the synchronous or asynchronous mode for image loading. 991 * The default parameter type is bool, and the default value is false. 992 * 993 * @param { boolean } value 994 * @returns { ImageAttribute } 995 * @syscap SystemCapability.ArkUI.ArkUI.Full 996 * @form 997 * @since 9 998 */ 999 /** 1000 * Sets the synchronous or asynchronous mode for image loading. 1001 * The default parameter type is bool, and the default value is false. 1002 * 1003 * @param { boolean } value 1004 * @returns { ImageAttribute } 1005 * @syscap SystemCapability.ArkUI.ArkUI.Full 1006 * @crossplatform 1007 * @form 1008 * @since 10 1009 */ 1010 /** 1011 * Sets the synchronous or asynchronous mode for image loading. 1012 * The default parameter type is bool, and the default value is false. 1013 * 1014 * @param { boolean } value 1015 * @returns { ImageAttribute } 1016 * @syscap SystemCapability.ArkUI.ArkUI.Full 1017 * @crossplatform 1018 * @form 1019 * @atomicservice 1020 * @since 11 1021 */ 1022 syncLoad(value: boolean): ImageAttribute; 1023 1024 /** 1025 * Sets the color filter effect on the image. 1026 * 1027 * @param { ColorFilter } value ColorFilter object. 1028 * @returns { ImageAttribute } 1029 * @syscap SystemCapability.ArkUI.ArkUI.Full 1030 * @form 1031 * @since 9 1032 */ 1033 /** 1034 * Sets the color filter effect on the image. 1035 * 1036 * @param { ColorFilter } value ColorFilter object. 1037 * @returns { ImageAttribute } 1038 * @syscap SystemCapability.ArkUI.ArkUI.Full 1039 * @crossplatform 1040 * @form 1041 * @since 10 1042 */ 1043 /** 1044 * Sets the color filter effect on the image. 1045 * 1046 * @param { ColorFilter } value ColorFilter object. 1047 * @returns { ImageAttribute } 1048 * @syscap SystemCapability.ArkUI.ArkUI.Full 1049 * @crossplatform 1050 * @form 1051 * @atomicservice 1052 * @since 11 1053 */ 1054 /** 1055 * Sets the color filter effect on the image. 1056 * 1057 * @param { ColorFilter | DrawingColorFilter } value ColorFilter object. 1058 * @returns { ImageAttribute } 1059 * @syscap SystemCapability.ArkUI.ArkUI.Full 1060 * @crossplatform 1061 * @form 1062 * @atomicservice 1063 * @since 12 1064 */ 1065 colorFilter(value: ColorFilter | DrawingColorFilter): ImageAttribute; 1066 1067 /** 1068 * Allow replication. 1069 * 1070 * @param { CopyOptions } value 1071 * @returns { ImageAttribute } 1072 * @syscap SystemCapability.ArkUI.ArkUI.Full 1073 * @form 1074 * @since 9 1075 */ 1076 /** 1077 * Allow replication. 1078 * 1079 * @param { CopyOptions } value 1080 * @returns { ImageAttribute } 1081 * @syscap SystemCapability.ArkUI.ArkUI.Full 1082 * @crossplatform 1083 * @form 1084 * @since 10 1085 */ 1086 /** 1087 * Allow replication. 1088 * 1089 * @param { CopyOptions } value 1090 * @returns { ImageAttribute } 1091 * @syscap SystemCapability.ArkUI.ArkUI.Full 1092 * @crossplatform 1093 * @form 1094 * @atomicservice 1095 * @since 11 1096 */ 1097 copyOption(value: CopyOptions): ImageAttribute; 1098 1099 /** 1100 * Enable image dragging. 1101 * Default value is false. 1102 * 1103 * @param { boolean } value 1104 * @returns { ImageAttribute } 1105 * @syscap SystemCapability.ArkUI.ArkUI.Full 1106 * @since 9 1107 */ 1108 /** 1109 * Enable image dragging. 1110 * Default value is true. 1111 * 1112 * @param { boolean } value 1113 * @returns { ImageAttribute } 1114 * @syscap SystemCapability.ArkUI.ArkUI.Full 1115 * @atomicservice 1116 * @since 11 1117 */ 1118 draggable(value: boolean): ImageAttribute; 1119 1120 /** 1121 * Defines the PointLight 1122 * 1123 * @param { PointLightStyle } value - The point light style. 1124 * @returns { ImageAttribute } The attribute of the image. 1125 * @syscap SystemCapability.ArkUI.ArkUI.Full 1126 * @systemapi 1127 * @since 11 1128 */ 1129 pointLight(value: PointLightStyle): ImageAttribute; 1130 1131 /** 1132 * SVG anti-aliasing. 1133 * The range of the parameter values is (0.333, 1.333]. 1134 * Default value is 0.0. 1135 * 1136 * @param { number } value - The degree of anti-aliasing. 1137 * @returns { ImageAttribute } The attribute of the image. 1138 * @syscap SystemCapability.ArkUI.ArkUI.Full 1139 * @systemapi 1140 * @since 11 1141 */ 1142 edgeAntialiasing(value: number): ImageAttribute; 1143 1144 /** 1145 * This callback is triggered when an image is successfully loaded. 1146 * The size of the image source that is successfully loaded is returned, in pixels. 1147 * 1148 * @param { function } callback 1149 * @returns { ImageAttribute } 1150 * @syscap SystemCapability.ArkUI.ArkUI.Full 1151 * @since 7 1152 */ 1153 /** 1154 * This callback is triggered when an image is successfully loaded. 1155 * The size of the image source that is successfully loaded is returned, in pixels. 1156 * 1157 * @param { function } callback 1158 * @returns { ImageAttribute } 1159 * @syscap SystemCapability.ArkUI.ArkUI.Full 1160 * @form 1161 * @since 9 1162 */ 1163 /** 1164 * This callback is triggered when an image is successfully loaded. 1165 * The size of the image source that is successfully loaded is returned, in pixels. 1166 * 1167 * @param { function } callback 1168 * @returns { ImageAttribute } 1169 * @syscap SystemCapability.ArkUI.ArkUI.Full 1170 * @crossplatform 1171 * @form 1172 * @since 10 1173 */ 1174 /** 1175 * This callback is triggered when an image is successfully loaded. 1176 * The size of the image source that is successfully loaded is returned, in pixels. 1177 * 1178 * @param { function } callback 1179 * @returns { ImageAttribute } 1180 * @syscap SystemCapability.ArkUI.ArkUI.Full 1181 * @crossplatform 1182 * @form 1183 * @atomicservice 1184 * @since 11 1185 */ 1186 onComplete( 1187 callback: (event?: { 1188 /** 1189 * The width of the image source. 1190 * 1191 * @type { number } 1192 * @syscap SystemCapability.ArkUI.ArkUI.Full 1193 * @since 7 1194 */ 1195 /** 1196 * The width of the image source. 1197 * 1198 * @type { number } 1199 * @syscap SystemCapability.ArkUI.ArkUI.Full 1200 * @since 9 1201 * @form 1202 */ 1203 /** 1204 * The width of the image source. 1205 * 1206 * @type { number } 1207 * @syscap SystemCapability.ArkUI.ArkUI.Full 1208 * @crossplatform 1209 * @since 10 1210 * @form 1211 */ 1212 /** 1213 * The width of the image source. 1214 * 1215 * @type { number } 1216 * @syscap SystemCapability.ArkUI.ArkUI.Full 1217 * @crossplatform 1218 * @atomicservice 1219 * @since 11 1220 * @form 1221 */ 1222 width: number; 1223 /** 1224 * The height of the image source. 1225 * 1226 * @type { number } 1227 * @syscap SystemCapability.ArkUI.ArkUI.Full 1228 * @since 7 1229 */ 1230 /** 1231 * The height of the image source. 1232 * 1233 * @type { number } 1234 * @syscap SystemCapability.ArkUI.ArkUI.Full 1235 * @since 9 1236 * @form 1237 */ 1238 /** 1239 * The height of the image source. 1240 * 1241 * @type { number } 1242 * @syscap SystemCapability.ArkUI.ArkUI.Full 1243 * @crossplatform 1244 * @since 10 1245 * @form 1246 */ 1247 /** 1248 * The height of the image source. 1249 * 1250 * @type { number } 1251 * @syscap SystemCapability.ArkUI.ArkUI.Full 1252 * @crossplatform 1253 * @atomicservice 1254 * @since 11 1255 * @form 1256 */ 1257 height: number; 1258 /** 1259 * The width of the component source. 1260 * 1261 * @type { number } 1262 * @syscap SystemCapability.ArkUI.ArkUI.Full 1263 * @since 7 1264 */ 1265 /** 1266 * The width of the component source. 1267 * 1268 * @type { number } 1269 * @syscap SystemCapability.ArkUI.ArkUI.Full 1270 * @since 9 1271 * @form 1272 */ 1273 /** 1274 * The width of the component source. 1275 * 1276 * @type { number } 1277 * @syscap SystemCapability.ArkUI.ArkUI.Full 1278 * @crossplatform 1279 * @since 10 1280 * @form 1281 */ 1282 /** 1283 * The width of the component source. 1284 * 1285 * @type { number } 1286 * @syscap SystemCapability.ArkUI.ArkUI.Full 1287 * @crossplatform 1288 * @atomicservice 1289 * @since 11 1290 * @form 1291 */ 1292 componentWidth: number; 1293 /** 1294 * The height of the component source. 1295 * 1296 * @type { number } 1297 * @syscap SystemCapability.ArkUI.ArkUI.Full 1298 * @since 7 1299 */ 1300 /** 1301 * The height of the component source. 1302 * 1303 * @type { number } 1304 * @syscap SystemCapability.ArkUI.ArkUI.Full 1305 * @since 9 1306 * @form 1307 */ 1308 /** 1309 * The height of the component source. 1310 * 1311 * @type { number } 1312 * @syscap SystemCapability.ArkUI.ArkUI.Full 1313 * @crossplatform 1314 * @since 10 1315 * @form 1316 */ 1317 /** 1318 * The height of the component source. 1319 * 1320 * @type { number } 1321 * @syscap SystemCapability.ArkUI.ArkUI.Full 1322 * @crossplatform 1323 * @atomicservice 1324 * @since 11 1325 * @form 1326 */ 1327 componentHeight: number; 1328 /** 1329 * The value of the status of the image being loaded successfully. 1330 * If the returned status value is 0, the image data is successfully loaded. 1331 * If the returned status value is 1, the image is successfully decoded. 1332 * 1333 * @type { number } 1334 * @syscap SystemCapability.ArkUI.ArkUI.Full 1335 * @since 7 1336 */ 1337 /** 1338 * The value of the status of the image being loaded successfully. 1339 * If the returned status value is 0, the image data is successfully loaded. 1340 * If the returned status value is 1, the image is successfully decoded. 1341 * 1342 * @type { number } 1343 * @syscap SystemCapability.ArkUI.ArkUI.Full 1344 * @since 9 1345 * @form 1346 */ 1347 /** 1348 * The value of the status of the image being loaded successfully. 1349 * If the returned status value is 0, the image data is successfully loaded. 1350 * If the returned status value is 1, the image is successfully decoded. 1351 * 1352 * @type { number } 1353 * @syscap SystemCapability.ArkUI.ArkUI.Full 1354 * @crossplatform 1355 * @since 10 1356 * @form 1357 */ 1358 /** 1359 * The value of the status of the image being loaded successfully. 1360 * If the returned status value is 0, the image data is successfully loaded. 1361 * If the returned status value is 1, the image is successfully decoded. 1362 * 1363 * @type { number } 1364 * @syscap SystemCapability.ArkUI.ArkUI.Full 1365 * @crossplatform 1366 * @atomicservice 1367 * @since 11 1368 * @form 1369 */ 1370 loadingStatus: number; 1371 /** 1372 * The width of the picture that is actually drawn. 1373 * 1374 * @type { number } 1375 * @syscap SystemCapability.ArkUI.ArkUI.Full 1376 * @crossplatform 1377 * @since 10 1378 * @form 1379 */ 1380 /** 1381 * The width of the picture that is actually drawn. 1382 * 1383 * @type { number } 1384 * @syscap SystemCapability.ArkUI.ArkUI.Full 1385 * @crossplatform 1386 * @atomicservice 1387 * @since 11 1388 * @form 1389 */ 1390 contentWidth: number; 1391 /** 1392 * The height of the picture that is actually drawn. 1393 * 1394 * @type { number } 1395 * @syscap SystemCapability.ArkUI.ArkUI.Full 1396 * @crossplatform 1397 * @since 10 1398 * @form 1399 */ 1400 /** 1401 * The height of the picture that is actually drawn. 1402 * 1403 * @type { number } 1404 * @syscap SystemCapability.ArkUI.ArkUI.Full 1405 * @crossplatform 1406 * @atomicservice 1407 * @since 11 1408 * @form 1409 */ 1410 contentHeight: number; 1411 /** 1412 * The actual draw is offset from the x-axis of the component itself. 1413 * 1414 * @type { number } 1415 * @syscap SystemCapability.ArkUI.ArkUI.Full 1416 * @crossplatform 1417 * @since 10 1418 * @form 1419 */ 1420 /** 1421 * The actual draw is offset from the x-axis of the component itself. 1422 * 1423 * @type { number } 1424 * @syscap SystemCapability.ArkUI.ArkUI.Full 1425 * @crossplatform 1426 * @atomicservice 1427 * @since 11 1428 * @form 1429 */ 1430 contentOffsetX: number; 1431 /** 1432 * The actual draw is offset from the y-axis of the component itself. 1433 * 1434 * @type { number } 1435 * @syscap SystemCapability.ArkUI.ArkUI.Full 1436 * @crossplatform 1437 * @since 10 1438 * @form 1439 */ 1440 /** 1441 * The actual draw is offset from the y-axis of the component itself. 1442 * 1443 * @type { number } 1444 * @syscap SystemCapability.ArkUI.ArkUI.Full 1445 * @crossplatform 1446 * @atomicservice 1447 * @since 11 1448 * @form 1449 */ 1450 contentOffsetY: number; 1451 }) => void, 1452 ): ImageAttribute; 1453 1454 /** 1455 * This callback is triggered when an exception occurs during image loading. 1456 * The field of "message" carries the detailed information of failed image loading. 1457 * 1458 * @param { function } callback 1459 * @returns { ImageAttribute } 1460 * @syscap SystemCapability.ArkUI.ArkUI.Full 1461 * @form 1462 * @since 9 1463 */ 1464 /** 1465 * This callback is triggered when an exception occurs during image loading. 1466 * The field of "message" carries the detailed information of failed image loading. 1467 * 1468 * @param { function } callback 1469 * @returns { ImageAttribute } 1470 * @syscap SystemCapability.ArkUI.ArkUI.Full 1471 * @crossplatform 1472 * @form 1473 * @since 10 1474 */ 1475 /** 1476 * This callback is triggered when an exception occurs during image loading. 1477 * The field of "message" carries the detailed information of failed image loading. 1478 * 1479 * @param { ImageErrorCallback } callback 1480 * @returns { ImageAttribute } 1481 * @syscap SystemCapability.ArkUI.ArkUI.Full 1482 * @crossplatform 1483 * @form 1484 * @atomicservice 1485 * @since 11 1486 */ 1487 onError(callback: ImageErrorCallback): ImageAttribute; 1488 1489 /** 1490 * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete. 1491 * If the svg image is a wireless loop image, this callback is not triggered. 1492 * 1493 * @param { function } event 1494 * @returns { ImageAttribute } 1495 * @syscap SystemCapability.ArkUI.ArkUI.Full 1496 * @since 7 1497 */ 1498 /** 1499 * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete. 1500 * If the svg image is a wireless loop image, this callback is not triggered. 1501 * 1502 * @param { function } event 1503 * @returns { ImageAttribute } 1504 * @syscap SystemCapability.ArkUI.ArkUI.Full 1505 * @form 1506 * @since 9 1507 */ 1508 /** 1509 * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete. 1510 * If the svg image is a wireless loop image, this callback is not triggered. 1511 * 1512 * @param { function } event 1513 * @returns { ImageAttribute } 1514 * @syscap SystemCapability.ArkUI.ArkUI.Full 1515 * @crossplatform 1516 * @form 1517 * @since 10 1518 */ 1519 /** 1520 * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete. 1521 * If the svg image is a wireless loop image, this callback is not triggered. 1522 * 1523 * @param { function } event 1524 * @returns { ImageAttribute } 1525 * @syscap SystemCapability.ArkUI.ArkUI.Full 1526 * @crossplatform 1527 * @form 1528 * @atomicservice 1529 * @since 11 1530 */ 1531 onFinish(event: () => void): ImageAttribute; 1532 1533 /** 1534 * Enable image analyzer. 1535 * 1536 * @param { boolean} enable 1537 * @returns { ImageAttribute } 1538 * @syscap SystemCapability.ArkUI.ArkUI.Full 1539 * @since 11 1540 */ 1541 /** 1542 * Enable image analyzer. 1543 * 1544 * @param { boolean} enable 1545 * @returns { ImageAttribute } 1546 * @syscap SystemCapability.ArkUI.ArkUI.Full 1547 * @atomicservice 1548 * @since 12 1549 */ 1550 enableAnalyzer(enable: boolean): ImageAttribute; 1551 1552 /** 1553 * Set image analyzer with config. 1554 * 1555 * @param { ImageAnalyzerConfig } config 1556 * @returns { ImageAttribute } 1557 * @syscap SystemCapability.ArkUI.ArkUI.Full 1558 * @systemapi 1559 * @since 11 1560 */ 1561 analyzerConfig(config: ImageAnalyzerConfig): ImageAttribute; 1562 1563 /** 1564 * Set image resizable options. 1565 * 1566 * @param { ResizableOptions } value - Indicates the resizable options. 1567 * @returns { ImageAttribute } Returns the instance of the ImageAttribute. 1568 * @syscap SystemCapability.ArkUI.ArkUI.Full 1569 * @crossplatform 1570 * @since 11 1571 */ 1572 /** 1573 * Set image resizable options. 1574 * 1575 * @param { ResizableOptions } value - Indicates the resizable options. 1576 * @returns { ImageAttribute } Returns the instance of the ImageAttribute. 1577 * @syscap SystemCapability.ArkUI.ArkUI.Full 1578 * @crossplatform 1579 * @atomicservice 1580 * @since 12 1581 */ 1582 resizable(value: ResizableOptions): ImageAttribute; 1583 1584 /** 1585 * Set the quality enhancement level of image. 1586 * 1587 * @param { ResolutionQuality } imageQuality 1588 * @returns { ImageAttribute } 1589 * @syscap SystemCapability.ArkUI.ArkUI.Full 1590 * @systemapi 1591 * @since 12 1592 */ 1593 enhancedImageQuality(imageQuality: ResolutionQuality): ImageAttribute; 1594 1595 /** 1596 * Whether to support sensitive privacy information 1597 * 1598 * @param { boolean } supported - Whether to support sensitive privacy information. 1599 * @returns { ImageAttribute } 1600 * @syscap SystemCapability.ArkUI.ArkUI.Full 1601 * @form 1602 * @atomicservice 1603 * @since 12 1604 */ 1605 privacySensitive(supported: boolean): ImageAttribute; 1606 1607 /** 1608 * Set the rotation angle of image. 1609 * 1610 * @param { ImageRotateOrientation } orientation 1611 * @returns { ImageAttribute } 1612 * @syscap SystemCapability.ArkUI.ArkUI.Full 1613 * @crossplatform 1614 * @atomicservice 1615 * @since 14 1616 */ 1617 orientation(orientation: ImageRotateOrientation) : ImageAttribute; 1618} 1619 1620/** 1621 * Defines Image Component. 1622 * 1623 * @syscap SystemCapability.ArkUI.ArkUI.Full 1624 * @since 7 1625 */ 1626/** 1627 * Defines Image Component. 1628 * 1629 * @syscap SystemCapability.ArkUI.ArkUI.Full 1630 * @form 1631 * @since 9 1632 */ 1633/** 1634 * Defines Image Component. 1635 * 1636 * @syscap SystemCapability.ArkUI.ArkUI.Full 1637 * @crossplatform 1638 * @form 1639 * @since 10 1640 */ 1641/** 1642 * Defines Image Component. 1643 * 1644 * @syscap SystemCapability.ArkUI.ArkUI.Full 1645 * @crossplatform 1646 * @form 1647 * @atomicservice 1648 * @since 11 1649 */ 1650declare const Image: ImageInterface; 1651 1652/** 1653 * Defines Image Component instance. 1654 * 1655 * @syscap SystemCapability.ArkUI.ArkUI.Full 1656 * @since 7 1657 */ 1658/** 1659 * Defines Image Component instance. 1660 * 1661 * @syscap SystemCapability.ArkUI.ArkUI.Full 1662 * @form 1663 * @since 9 1664 */ 1665/** 1666 * Defines Image Component instance. 1667 * 1668 * @syscap SystemCapability.ArkUI.ArkUI.Full 1669 * @crossplatform 1670 * @form 1671 * @since 10 1672 */ 1673/** 1674 * Defines Image Component instance. 1675 * 1676 * @syscap SystemCapability.ArkUI.ArkUI.Full 1677 * @crossplatform 1678 * @form 1679 * @atomicservice 1680 * @since 11 1681 */ 1682declare const ImageInstance: ImageAttribute; 1683 1684/** 1685 * @type ImageErrorCallback 1686 * @syscap SystemCapability.ArkUI.ArkUI.Full 1687 * @form 1688 * @since 9 1689 */ 1690/** 1691 * @type ImageErrorCallback 1692 * @syscap SystemCapability.ArkUI.ArkUI.Full 1693 * @crossplatform 1694 * @form 1695 * @since 10 1696 */ 1697/** 1698 * @typedef { function } ImageErrorCallback 1699 * @param { ImageError } error 1700 * @syscap SystemCapability.ArkUI.ArkUI.Full 1701 * @crossplatform 1702 * @form 1703 * @atomicservice 1704 * @since 11 1705 */ 1706type ImageErrorCallback = (error: ImageError) => void; 1707 1708/** 1709 * @interface ImageError 1710 * @syscap SystemCapability.ArkUI.ArkUI.Full 1711 * @form 1712 * @since 9 1713 */ 1714/** 1715 * @interface ImageError 1716 * @syscap SystemCapability.ArkUI.ArkUI.Full 1717 * @crossplatform 1718 * @form 1719 * @since 10 1720 */ 1721/** 1722 * @interface ImageError 1723 * @syscap SystemCapability.ArkUI.ArkUI.Full 1724 * @crossplatform 1725 * @form 1726 * @atomicservice 1727 * @since 11 1728 */ 1729declare interface ImageError { 1730 /** 1731 * Component width. 1732 * 1733 * @type { number } 1734 * @syscap SystemCapability.ArkUI.ArkUI.Full 1735 * @form 1736 * @since 9 1737 */ 1738 /** 1739 * Component width. 1740 * 1741 * @type { number } 1742 * @syscap SystemCapability.ArkUI.ArkUI.Full 1743 * @crossplatform 1744 * @form 1745 * @since 10 1746 */ 1747 /** 1748 * Component width. 1749 * 1750 * @type { number } 1751 * @syscap SystemCapability.ArkUI.ArkUI.Full 1752 * @crossplatform 1753 * @form 1754 * @atomicservice 1755 * @since 11 1756 */ 1757 componentWidth: number; 1758 1759 /** 1760 * Component height. 1761 * 1762 * @type { number } 1763 * @syscap SystemCapability.ArkUI.ArkUI.Full 1764 * @form 1765 * @since 9 1766 */ 1767 /** 1768 * Component height. 1769 * 1770 * @type { number } 1771 * @syscap SystemCapability.ArkUI.ArkUI.Full 1772 * @crossplatform 1773 * @form 1774 * @since 10 1775 */ 1776 /** 1777 * Component height. 1778 * 1779 * @type { number } 1780 * @syscap SystemCapability.ArkUI.ArkUI.Full 1781 * @crossplatform 1782 * @form 1783 * @atomicservice 1784 * @since 11 1785 */ 1786 componentHeight: number; 1787 1788 /** 1789 * Message. 1790 * 1791 * @type { string } 1792 * @syscap SystemCapability.ArkUI.ArkUI.Full 1793 * @crossplatform 1794 * @form 1795 * @since 10 1796 */ 1797 /** 1798 * Message. 1799 * 1800 * @type { string } 1801 * @syscap SystemCapability.ArkUI.ArkUI.Full 1802 * @crossplatform 1803 * @form 1804 * @atomicservice 1805 * @since 11 1806 */ 1807 message: string 1808} 1809 1810/** 1811 * Image resizable options 1812 * 1813 * @interface ResizableOptions 1814 * @syscap SystemCapability.ArkUI.ArkUI.Full 1815 * @crossplatform 1816 * @since 11 1817 */ 1818/** 1819 * Image resizable options 1820 * 1821 * @interface ResizableOptions 1822 * @syscap SystemCapability.ArkUI.ArkUI.Full 1823 * @crossplatform 1824 * @atomicservice 1825 * @since 12 1826 */ 1827declare interface ResizableOptions { 1828 /** 1829 * Image slice widths. 1830 * 1831 * @type { ?EdgeWidths } 1832 * @syscap SystemCapability.ArkUI.ArkUI.Full 1833 * @crossplatform 1834 * @since 11 1835 */ 1836 /** 1837 * Image slice widths. 1838 * 1839 * @type { ?EdgeWidths } 1840 * @syscap SystemCapability.ArkUI.ArkUI.Full 1841 * @crossplatform 1842 * @atomicservice 1843 * @since 12 1844 */ 1845 slice?: EdgeWidths; 1846 1847 /** 1848 * Image lattice. 1849 * 1850 * @type { ?DrawingLattice } 1851 * @syscap SystemCapability.ArkUI.ArkUI.Full 1852 * @crossplatform 1853 * @atomicservice 1854 * @since 12 1855 */ 1856 lattice?: DrawingLattice; 1857} 1858