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 * @interface ImageInterface 377 * @syscap SystemCapability.ArkUI.ArkUI.Full 378 * @since 7 379 */ 380/** 381 * @interface ImageInterface 382 * @syscap SystemCapability.ArkUI.ArkUI.Full 383 * @form 384 * @since 9 385 */ 386/** 387 * @interface ImageInterface 388 * @syscap SystemCapability.ArkUI.ArkUI.Full 389 * @crossplatform 390 * @form 391 * @since 10 392 */ 393/** 394 * @interface ImageInterface 395 * @syscap SystemCapability.ArkUI.ArkUI.Full 396 * @crossplatform 397 * @form 398 * @atomicservice 399 * @since 11 400 */ 401interface ImageInterface { 402 /** 403 * Set src to obtain images. 404 * 405 * @param { PixelMap | ResourceStr | DrawableDescriptor } src 406 * @returns { ImageAttribute } 407 * @syscap SystemCapability.ArkUI.ArkUI.Full 408 * @since 7 409 */ 410 /** 411 * Set src to obtain images 412 * 413 * @param { PixelMap | ResourceStr | DrawableDescriptor } src 414 * @returns { ImageAttribute } 415 * @syscap SystemCapability.ArkUI.ArkUI.Full 416 * @form 417 * @since 9 418 */ 419 /** 420 * Set src to obtain images 421 * 422 * @param { PixelMap | ResourceStr | DrawableDescriptor } src 423 * @returns { ImageAttribute } 424 * @syscap SystemCapability.ArkUI.ArkUI.Full 425 * @crossplatform 426 * @form 427 * @since 10 428 */ 429 /** 430 * Set src to obtain images 431 * 432 * @param { PixelMap | ResourceStr | DrawableDescriptor } src 433 * @returns { ImageAttribute } 434 * @syscap SystemCapability.ArkUI.ArkUI.Full 435 * @crossplatform 436 * @form 437 * @atomicservice 438 * @since 11 439 */ 440 (src: PixelMap | ResourceStr | DrawableDescriptor): ImageAttribute; 441 442 /** 443 * Set src to obtain images 444 * 445 * @param { PixelMap | ResourceStr | DrawableDescriptor | ImageContent } src 446 * @returns { ImageAttribute } 447 * @syscap SystemCapability.ArkUI.ArkUI.Full 448 * @crossplatform 449 * @form 450 * @atomicservice 451 * @since 12 452 */ 453 (src: PixelMap | ResourceStr | DrawableDescriptor | ImageContent): ImageAttribute; 454 455 /** 456 * Set src and ai options to obtain images 457 * 458 * @param { PixelMap | ResourceStr | DrawableDescriptor } src 459 * @param { ImageAIOptions } imageAIOptions 460 * @returns { ImageAttribute } 461 * @syscap SystemCapability.ArkUI.ArkUI.Full 462 * @atomicservice 463 * @since 12 464 */ 465 (src: PixelMap | ResourceStr | DrawableDescriptor, imageAIOptions: ImageAIOptions): ImageAttribute; 466} 467 468/** 469 * Defines source size of image. 470 * 471 * @interface ImageSourceSize 472 * @syscap SystemCapability.ArkUI.ArkUI.Full 473 * @crossplatform 474 * @form 475 * @atomicservice 476 * @since 14 477 */ 478 479interface ImageSourceSize { 480 /** 481 * Set width. 482 * 483 * @type { number } 484 * @syscap SystemCapability.ArkUI.ArkUI.Full 485 * @since 7 486 */ 487 /** 488 * Set width. 489 * 490 * @type { number } 491 * @syscap SystemCapability.ArkUI.ArkUI.Full 492 * @form 493 * @since 9 494 */ 495 /** 496 * Set width. 497 * 498 * @type { number } 499 * @syscap SystemCapability.ArkUI.ArkUI.Full 500 * @crossplatform 501 * @form 502 * @since 10 503 */ 504 /** 505 * Set width. 506 * 507 * @type { number } 508 * @syscap SystemCapability.ArkUI.ArkUI.Full 509 * @crossplatform 510 * @form 511 * @atomicservice 512 * @since 11 513 */ 514 width: number; 515 516 /** 517 * Set height. 518 * 519 * @type { number } 520 * @syscap SystemCapability.ArkUI.ArkUI.Full 521 * @since 7 522 */ 523 /** 524 * Set height. 525 * 526 * @type { number } 527 * @syscap SystemCapability.ArkUI.ArkUI.Full 528 * @form 529 * @since 9 530 */ 531 /** 532 * Set height. 533 * 534 * @type { number } 535 * @syscap SystemCapability.ArkUI.ArkUI.Full 536 * @crossplatform 537 * @form 538 * @since 10 539 */ 540 /** 541 * Set height. 542 * 543 * @type { number } 544 * @syscap SystemCapability.ArkUI.ArkUI.Full 545 * @crossplatform 546 * @form 547 * @atomicservice 548 * @since 11 549 */ 550 height: number; 551} 552 553/** 554 * @extends CommonMethod<ImageAttribute> 555 * @syscap SystemCapability.ArkUI.ArkUI.Full 556 * @since 7 557 */ 558/** 559 * @extends CommonMethod<ImageAttribute> 560 * @syscap SystemCapability.ArkUI.ArkUI.Full 561 * @form 562 * @since 9 563 */ 564/** 565 * @extends CommonMethod<ImageAttribute> 566 * @syscap SystemCapability.ArkUI.ArkUI.Full 567 * @crossplatform 568 * @form 569 * @since 10 570 */ 571/** 572 * @extends CommonMethod<ImageAttribute> 573 * @syscap SystemCapability.ArkUI.ArkUI.Full 574 * @crossplatform 575 * @form 576 * @atomicservice 577 * @since 11 578 */ 579declare class ImageAttribute extends CommonMethod<ImageAttribute> { 580 /** 581 * Placeholder displayed on load 582 * 583 * @param { string | Resource } value 584 * @returns { ImageAttribute } 585 * @syscap SystemCapability.ArkUI.ArkUI.Full 586 * @since 7 587 */ 588 /** 589 * Placeholder displayed on load 590 * 591 * @param { string | Resource } value 592 * @returns { ImageAttribute } 593 * @syscap SystemCapability.ArkUI.ArkUI.Full 594 * @form 595 * @since 9 596 */ 597 /** 598 * Placeholder displayed on load 599 * 600 * @param { string | Resource } value 601 * @returns { ImageAttribute } 602 * @syscap SystemCapability.ArkUI.ArkUI.Full 603 * @crossplatform 604 * @form 605 * @since 10 606 */ 607 /** 608 * Placeholder displayed on load 609 * 610 * @param { string | Resource } value 611 * @returns { ImageAttribute } 612 * @syscap SystemCapability.ArkUI.ArkUI.Full 613 * @crossplatform 614 * @form 615 * @atomicservice 616 * @since 11 617 */ 618 /** 619 * Placeholder displayed on load 620 * 621 * @param { string | Resource | PixelMap } value 622 * @returns { ImageAttribute } 623 * @syscap SystemCapability.ArkUI.ArkUI.Full 624 * @crossplatform 625 * @form 626 * @atomicservice 627 * @since 12 628 */ 629 alt(value: string | Resource | PixelMap): ImageAttribute; 630 631 /** 632 * match Text Direction 633 * 634 * @param { boolean } value 635 * @returns { ImageAttribute } 636 * @syscap SystemCapability.ArkUI.ArkUI.Full 637 * @since 7 638 */ 639 /** 640 * match Text Direction 641 * 642 * @param { boolean } value 643 * @returns { ImageAttribute } 644 * @syscap SystemCapability.ArkUI.ArkUI.Full 645 * @form 646 * @since 9 647 */ 648 /** 649 * match Text Direction 650 * 651 * @param { boolean } value 652 * @returns { ImageAttribute } 653 * @syscap SystemCapability.ArkUI.ArkUI.Full 654 * @crossplatform 655 * @form 656 * @since 10 657 */ 658 /** 659 * match Text Direction 660 * 661 * @param { boolean } value 662 * @returns { ImageAttribute } 663 * @syscap SystemCapability.ArkUI.ArkUI.Full 664 * @crossplatform 665 * @form 666 * @atomicservice 667 * @since 11 668 */ 669 matchTextDirection(value: boolean): ImageAttribute; 670 671 /** 672 * Sets whether the display size of the image follows the source size. 673 * 674 * @param { boolean } value 675 * @returns { ImageAttribute } 676 * @syscap SystemCapability.ArkUI.ArkUI.Full 677 * @since 7 678 */ 679 /** 680 * Sets whether the display size of the image follows the source size. 681 * 682 * @param { boolean } value 683 * @returns { ImageAttribute } 684 * @syscap SystemCapability.ArkUI.ArkUI.Full 685 * @form 686 * @since 9 687 */ 688 /** 689 * Sets whether the display size of the image follows the source size. 690 * 691 * @param { boolean } value 692 * @returns { ImageAttribute } 693 * @syscap SystemCapability.ArkUI.ArkUI.Full 694 * @crossplatform 695 * @form 696 * @since 10 697 */ 698 /** 699 * Sets whether the display size of the image follows the source size. 700 * 701 * @param { boolean } value 702 * @returns { ImageAttribute } 703 * @syscap SystemCapability.ArkUI.ArkUI.Full 704 * @crossplatform 705 * @form 706 * @atomicservice 707 * @since 11 708 */ 709 fitOriginalSize(value: boolean): ImageAttribute; 710 711 /** 712 * fill Color 713 * 714 * @param { ResourceColor } value 715 * @returns { ImageAttribute } 716 * @syscap SystemCapability.ArkUI.ArkUI.Full 717 * @since 7 718 */ 719 /** 720 * fill Color 721 * 722 * @param { ResourceColor } value 723 * @returns { ImageAttribute } 724 * @syscap SystemCapability.ArkUI.ArkUI.Full 725 * @form 726 * @since 9 727 */ 728 /** 729 * fill Color 730 * 731 * @param { ResourceColor } value 732 * @returns { ImageAttribute } 733 * @syscap SystemCapability.ArkUI.ArkUI.Full 734 * @crossplatform 735 * @form 736 * @since 10 737 */ 738 /** 739 * fill Color 740 * 741 * @param { ResourceColor } value 742 * @returns { ImageAttribute } 743 * @syscap SystemCapability.ArkUI.ArkUI.Full 744 * @crossplatform 745 * @form 746 * @atomicservice 747 * @since 11 748 */ 749 fillColor(value: ResourceColor): ImageAttribute; 750 751 /** 752 * Sets the zoom type of an image. 753 * 754 * @param { ImageFit } value 755 * @returns { ImageAttribute } 756 * @syscap SystemCapability.ArkUI.ArkUI.Full 757 * @since 7 758 */ 759 /** 760 * Sets the zoom type of an image. 761 * 762 * @param { ImageFit } value 763 * @returns { ImageAttribute } 764 * @syscap SystemCapability.ArkUI.ArkUI.Full 765 * @form 766 * @since 9 767 */ 768 /** 769 * Sets the zoom type of an image. 770 * 771 * @param { ImageFit } value 772 * @returns { ImageAttribute } 773 * @syscap SystemCapability.ArkUI.ArkUI.Full 774 * @crossplatform 775 * @form 776 * @since 10 777 */ 778 /** 779 * Sets the zoom type of an image. 780 * 781 * @param { ImageFit } value 782 * @returns { ImageAttribute } 783 * @syscap SystemCapability.ArkUI.ArkUI.Full 784 * @crossplatform 785 * @form 786 * @atomicservice 787 * @since 11 788 */ 789 objectFit(value: ImageFit): ImageAttribute; 790 791 /** 792 * Set the repeat style of the picture 793 * 794 * @param { ImageRepeat } value 795 * @returns { ImageAttribute } 796 * @syscap SystemCapability.ArkUI.ArkUI.Full 797 * @since 7 798 */ 799 /** 800 * Set the repeat style of the picture 801 * 802 * @param { ImageRepeat } value 803 * @returns { ImageAttribute } 804 * @syscap SystemCapability.ArkUI.ArkUI.Full 805 * @form 806 * @since 9 807 */ 808 /** 809 * Set the repeat style of the picture 810 * 811 * @param { ImageRepeat } value 812 * @returns { ImageAttribute } 813 * @syscap SystemCapability.ArkUI.ArkUI.Full 814 * @crossplatform 815 * @form 816 * @since 10 817 */ 818 /** 819 * Set the repeat style of the picture 820 * 821 * @param { ImageRepeat } value 822 * @returns { ImageAttribute } 823 * @syscap SystemCapability.ArkUI.ArkUI.Full 824 * @crossplatform 825 * @form 826 * @atomicservice 827 * @since 11 828 */ 829 objectRepeat(value: ImageRepeat): ImageAttribute; 830 831 /** 832 * Set the auto style of the picture 833 * 834 * @param { boolean } value 835 * @returns { ImageAttribute } 836 * @syscap SystemCapability.ArkUI.ArkUI.Full 837 * @since 7 838 */ 839 /** 840 * Set the auto style of the picture 841 * 842 * @param { boolean } value 843 * @returns { ImageAttribute } 844 * @syscap SystemCapability.ArkUI.ArkUI.Full 845 * @form 846 * @since 9 847 */ 848 /** 849 * Set the auto style of the picture 850 * 851 * @param { boolean } value 852 * @returns { ImageAttribute } 853 * @syscap SystemCapability.ArkUI.ArkUI.Full 854 * @crossplatform 855 * @form 856 * @since 10 857 */ 858 /** 859 * Set the auto style of the picture 860 * 861 * @param { boolean } value 862 * @returns { ImageAttribute } 863 * @syscap SystemCapability.ArkUI.ArkUI.Full 864 * @crossplatform 865 * @form 866 * @atomicservice 867 * @since 11 868 */ 869 autoResize(value: boolean): ImageAttribute; 870 871 /** 872 * Sets the image rendering mode. 873 * 874 * @param { ImageRenderMode } value 875 * @returns { ImageAttribute } 876 * @syscap SystemCapability.ArkUI.ArkUI.Full 877 * @since 7 878 */ 879 /** 880 * Sets the image rendering mode. 881 * 882 * @param { ImageRenderMode } value 883 * @returns { ImageAttribute } 884 * @syscap SystemCapability.ArkUI.ArkUI.Full 885 * @form 886 * @since 9 887 */ 888 /** 889 * Sets the image rendering mode. 890 * 891 * @param { ImageRenderMode } value 892 * @returns { ImageAttribute } 893 * @syscap SystemCapability.ArkUI.ArkUI.Full 894 * @crossplatform 895 * @form 896 * @since 10 897 */ 898 /** 899 * Sets the image rendering mode. 900 * 901 * @param { ImageRenderMode } value 902 * @returns { ImageAttribute } 903 * @syscap SystemCapability.ArkUI.ArkUI.Full 904 * @crossplatform 905 * @form 906 * @atomicservice 907 * @since 11 908 */ 909 renderMode(value: ImageRenderMode): ImageAttribute; 910 911 /** 912 * Set dynamic range mode of image. 913 * 914 * @param { DynamicRangeMode } value - Indicates the resizable options. 915 * @returns { ImageAttribute } Returns the instance of the ImageAttribute. 916 * @syscap SystemCapability.ArkUI.ArkUI.Full 917 * @atomicservice 918 * @since 12 919 */ 920 dynamicRangeMode(value: DynamicRangeMode): ImageAttribute; 921 922 /** 923 * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image. 924 * 925 * @param { ImageInterpolation } value 926 * @returns { ImageAttribute } 927 * @syscap SystemCapability.ArkUI.ArkUI.Full 928 * @since 7 929 */ 930 /** 931 * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image. 932 * 933 * @param { ImageInterpolation } value 934 * @returns { ImageAttribute } 935 * @syscap SystemCapability.ArkUI.ArkUI.Full 936 * @form 937 * @since 9 938 */ 939 /** 940 * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image. 941 * 942 * @param { ImageInterpolation } value 943 * @returns { ImageAttribute } 944 * @syscap SystemCapability.ArkUI.ArkUI.Full 945 * @crossplatform 946 * @form 947 * @since 10 948 */ 949 /** 950 * Sets the interpolation effect of an image. The interpolation effect is only magnified for the image. 951 * 952 * @param { ImageInterpolation } value 953 * @returns { ImageAttribute } 954 * @syscap SystemCapability.ArkUI.ArkUI.Full 955 * @crossplatform 956 * @form 957 * @atomicservice 958 * @since 11 959 */ 960 interpolation(value: ImageInterpolation): ImageAttribute; 961 962 /** 963 * Specifies the picture decoding size. 964 * The original picture is decoded into a picture of a specified size. The unit of the number type is px. 965 * 966 * @param { object } value 967 * @returns { ImageAttribute } 968 * @syscap SystemCapability.ArkUI.ArkUI.Full 969 * @since 7 970 */ 971 /** 972 * Specifies the picture decoding size. 973 * The original picture is decoded into a picture of a specified size. The unit of the number type is px. 974 * 975 * @param { object } value 976 * @returns { ImageAttribute } 977 * @syscap SystemCapability.ArkUI.ArkUI.Full 978 * @form 979 * @since 9 980 */ 981 /** 982 * Specifies the picture decoding size. 983 * The original picture is decoded into a picture of a specified size. The unit of the number type is px. 984 * 985 * @param { object } value 986 * @returns { ImageAttribute } 987 * @syscap SystemCapability.ArkUI.ArkUI.Full 988 * @crossplatform 989 * @form 990 * @since 10 991 */ 992 /** 993 * Specifies the picture decoding size. 994 * The original picture is decoded into a picture of a specified size. The unit of the number type is px. 995 * 996 * @param { object } value 997 * @returns { ImageAttribute } 998 * @syscap SystemCapability.ArkUI.ArkUI.Full 999 * @crossplatform 1000 * @form 1001 * @atomicservice 1002 * @since 11 1003 */ 1004 /** 1005 * Specifies the picture decoding size. 1006 * The original picture is decoded into a picture of a specified size. The unit of the number type is px. 1007 * 1008 * @param { ImageSourceSize } value - Image source size. 1009 * @returns { ImageAttribute } 1010 * @syscap SystemCapability.ArkUI.ArkUI.Full 1011 * @crossplatform 1012 * @form 1013 * @atomicservice 1014 * @since 14 1015 */ 1016 sourceSize(value: ImageSourceSize): ImageAttribute; 1017 1018 /** 1019 * Sets the synchronous or asynchronous mode for image loading. 1020 * The default parameter type is bool, and the default value is false. 1021 * 1022 * @param { boolean } value 1023 * @returns { ImageAttribute } 1024 * @syscap SystemCapability.ArkUI.ArkUI.Full 1025 * @since 8 1026 */ 1027 /** 1028 * Sets the synchronous or asynchronous mode for image loading. 1029 * The default parameter type is bool, and the default value is false. 1030 * 1031 * @param { boolean } value 1032 * @returns { ImageAttribute } 1033 * @syscap SystemCapability.ArkUI.ArkUI.Full 1034 * @form 1035 * @since 9 1036 */ 1037 /** 1038 * Sets the synchronous or asynchronous mode for image loading. 1039 * The default parameter type is bool, and the default value is false. 1040 * 1041 * @param { boolean } value 1042 * @returns { ImageAttribute } 1043 * @syscap SystemCapability.ArkUI.ArkUI.Full 1044 * @crossplatform 1045 * @form 1046 * @since 10 1047 */ 1048 /** 1049 * Sets the synchronous or asynchronous mode for image loading. 1050 * The default parameter type is bool, and the default value is false. 1051 * 1052 * @param { boolean } value 1053 * @returns { ImageAttribute } 1054 * @syscap SystemCapability.ArkUI.ArkUI.Full 1055 * @crossplatform 1056 * @form 1057 * @atomicservice 1058 * @since 11 1059 */ 1060 syncLoad(value: boolean): ImageAttribute; 1061 1062 /** 1063 * Sets the color filter effect on the image. 1064 * 1065 * @param { ColorFilter } value ColorFilter object. 1066 * @returns { ImageAttribute } 1067 * @syscap SystemCapability.ArkUI.ArkUI.Full 1068 * @form 1069 * @since 9 1070 */ 1071 /** 1072 * Sets the color filter effect on the image. 1073 * 1074 * @param { ColorFilter } value ColorFilter object. 1075 * @returns { ImageAttribute } 1076 * @syscap SystemCapability.ArkUI.ArkUI.Full 1077 * @crossplatform 1078 * @form 1079 * @since 10 1080 */ 1081 /** 1082 * Sets the color filter effect on the image. 1083 * 1084 * @param { ColorFilter } value ColorFilter object. 1085 * @returns { ImageAttribute } 1086 * @syscap SystemCapability.ArkUI.ArkUI.Full 1087 * @crossplatform 1088 * @form 1089 * @atomicservice 1090 * @since 11 1091 */ 1092 /** 1093 * Sets the color filter effect on the image. 1094 * 1095 * @param { ColorFilter | DrawingColorFilter } value ColorFilter object. 1096 * @returns { ImageAttribute } 1097 * @syscap SystemCapability.ArkUI.ArkUI.Full 1098 * @crossplatform 1099 * @form 1100 * @atomicservice 1101 * @since 12 1102 */ 1103 colorFilter(value: ColorFilter | DrawingColorFilter): ImageAttribute; 1104 1105 /** 1106 * Allow replication. 1107 * 1108 * @param { CopyOptions } value 1109 * @returns { ImageAttribute } 1110 * @syscap SystemCapability.ArkUI.ArkUI.Full 1111 * @form 1112 * @since 9 1113 */ 1114 /** 1115 * Allow replication. 1116 * 1117 * @param { CopyOptions } value 1118 * @returns { ImageAttribute } 1119 * @syscap SystemCapability.ArkUI.ArkUI.Full 1120 * @crossplatform 1121 * @form 1122 * @since 10 1123 */ 1124 /** 1125 * Allow replication. 1126 * 1127 * @param { CopyOptions } value 1128 * @returns { ImageAttribute } 1129 * @syscap SystemCapability.ArkUI.ArkUI.Full 1130 * @crossplatform 1131 * @form 1132 * @atomicservice 1133 * @since 11 1134 */ 1135 copyOption(value: CopyOptions): ImageAttribute; 1136 1137 /** 1138 * Enable image dragging. 1139 * Default value is false. 1140 * 1141 * @param { boolean } value 1142 * @returns { ImageAttribute } 1143 * @syscap SystemCapability.ArkUI.ArkUI.Full 1144 * @since 9 1145 */ 1146 /** 1147 * Enable image dragging. 1148 * Default value is true. 1149 * 1150 * @param { boolean } value 1151 * @returns { ImageAttribute } 1152 * @syscap SystemCapability.ArkUI.ArkUI.Full 1153 * @atomicservice 1154 * @since 11 1155 */ 1156 draggable(value: boolean): ImageAttribute; 1157 1158 /** 1159 * Defines the PointLight 1160 * 1161 * @param { PointLightStyle } value - The point light style. 1162 * @returns { ImageAttribute } The attribute of the image. 1163 * @syscap SystemCapability.ArkUI.ArkUI.Full 1164 * @systemapi 1165 * @since 11 1166 */ 1167 pointLight(value: PointLightStyle): ImageAttribute; 1168 1169 /** 1170 * SVG anti-aliasing. 1171 * The range of the parameter values is (0.333, 1.333]. 1172 * Default value is 0.0. 1173 * 1174 * @param { number } value - The degree of anti-aliasing. 1175 * @returns { ImageAttribute } The attribute of the image. 1176 * @syscap SystemCapability.ArkUI.ArkUI.Full 1177 * @systemapi 1178 * @since 11 1179 */ 1180 edgeAntialiasing(value: number): ImageAttribute; 1181 1182 /** 1183 * This callback is triggered when an image is successfully loaded. 1184 * The size of the image source that is successfully loaded is returned, in pixels. 1185 * 1186 * @param { function } callback 1187 * @returns { ImageAttribute } 1188 * @syscap SystemCapability.ArkUI.ArkUI.Full 1189 * @since 7 1190 */ 1191 /** 1192 * This callback is triggered when an image is successfully loaded. 1193 * The size of the image source that is successfully loaded is returned, in pixels. 1194 * 1195 * @param { function } callback 1196 * @returns { ImageAttribute } 1197 * @syscap SystemCapability.ArkUI.ArkUI.Full 1198 * @form 1199 * @since 9 1200 */ 1201 /** 1202 * This callback is triggered when an image is successfully loaded. 1203 * The size of the image source that is successfully loaded is returned, in pixels. 1204 * 1205 * @param { function } callback 1206 * @returns { ImageAttribute } 1207 * @syscap SystemCapability.ArkUI.ArkUI.Full 1208 * @crossplatform 1209 * @form 1210 * @since 10 1211 */ 1212 /** 1213 * This callback is triggered when an image is successfully loaded. 1214 * The size of the image source that is successfully loaded is returned, in pixels. 1215 * 1216 * @param { function } callback 1217 * @returns { ImageAttribute } 1218 * @syscap SystemCapability.ArkUI.ArkUI.Full 1219 * @crossplatform 1220 * @form 1221 * @atomicservice 1222 * @since 11 1223 */ 1224 onComplete( 1225 callback: (event?: { 1226 /** 1227 * The width of the image source. 1228 * 1229 * @type { number } 1230 * @syscap SystemCapability.ArkUI.ArkUI.Full 1231 * @since 7 1232 */ 1233 /** 1234 * The width of the image source. 1235 * 1236 * @type { number } 1237 * @syscap SystemCapability.ArkUI.ArkUI.Full 1238 * @since 9 1239 * @form 1240 */ 1241 /** 1242 * The width of the image source. 1243 * 1244 * @type { number } 1245 * @syscap SystemCapability.ArkUI.ArkUI.Full 1246 * @crossplatform 1247 * @since 10 1248 * @form 1249 */ 1250 /** 1251 * The width of the image source. 1252 * 1253 * @type { number } 1254 * @syscap SystemCapability.ArkUI.ArkUI.Full 1255 * @crossplatform 1256 * @atomicservice 1257 * @since 11 1258 * @form 1259 */ 1260 width: number; 1261 /** 1262 * The height of the image source. 1263 * 1264 * @type { number } 1265 * @syscap SystemCapability.ArkUI.ArkUI.Full 1266 * @since 7 1267 */ 1268 /** 1269 * The height of the image source. 1270 * 1271 * @type { number } 1272 * @syscap SystemCapability.ArkUI.ArkUI.Full 1273 * @since 9 1274 * @form 1275 */ 1276 /** 1277 * The height of the image source. 1278 * 1279 * @type { number } 1280 * @syscap SystemCapability.ArkUI.ArkUI.Full 1281 * @crossplatform 1282 * @since 10 1283 * @form 1284 */ 1285 /** 1286 * The height of the image source. 1287 * 1288 * @type { number } 1289 * @syscap SystemCapability.ArkUI.ArkUI.Full 1290 * @crossplatform 1291 * @atomicservice 1292 * @since 11 1293 * @form 1294 */ 1295 height: number; 1296 /** 1297 * The width of the component source. 1298 * 1299 * @type { number } 1300 * @syscap SystemCapability.ArkUI.ArkUI.Full 1301 * @since 7 1302 */ 1303 /** 1304 * The width of the component source. 1305 * 1306 * @type { number } 1307 * @syscap SystemCapability.ArkUI.ArkUI.Full 1308 * @since 9 1309 * @form 1310 */ 1311 /** 1312 * The width of the component source. 1313 * 1314 * @type { number } 1315 * @syscap SystemCapability.ArkUI.ArkUI.Full 1316 * @crossplatform 1317 * @since 10 1318 * @form 1319 */ 1320 /** 1321 * The width of the component source. 1322 * 1323 * @type { number } 1324 * @syscap SystemCapability.ArkUI.ArkUI.Full 1325 * @crossplatform 1326 * @atomicservice 1327 * @since 11 1328 * @form 1329 */ 1330 componentWidth: number; 1331 /** 1332 * The height of the component source. 1333 * 1334 * @type { number } 1335 * @syscap SystemCapability.ArkUI.ArkUI.Full 1336 * @since 7 1337 */ 1338 /** 1339 * The height of the component source. 1340 * 1341 * @type { number } 1342 * @syscap SystemCapability.ArkUI.ArkUI.Full 1343 * @since 9 1344 * @form 1345 */ 1346 /** 1347 * The height of the component source. 1348 * 1349 * @type { number } 1350 * @syscap SystemCapability.ArkUI.ArkUI.Full 1351 * @crossplatform 1352 * @since 10 1353 * @form 1354 */ 1355 /** 1356 * The height of the component source. 1357 * 1358 * @type { number } 1359 * @syscap SystemCapability.ArkUI.ArkUI.Full 1360 * @crossplatform 1361 * @atomicservice 1362 * @since 11 1363 * @form 1364 */ 1365 componentHeight: number; 1366 /** 1367 * The value of the status of the image being loaded successfully. 1368 * If the returned status value is 0, the image data is successfully loaded. 1369 * If the returned status value is 1, the image is successfully decoded. 1370 * 1371 * @type { number } 1372 * @syscap SystemCapability.ArkUI.ArkUI.Full 1373 * @since 7 1374 */ 1375 /** 1376 * The value of the status of the image being loaded successfully. 1377 * If the returned status value is 0, the image data is successfully loaded. 1378 * If the returned status value is 1, the image is successfully decoded. 1379 * 1380 * @type { number } 1381 * @syscap SystemCapability.ArkUI.ArkUI.Full 1382 * @since 9 1383 * @form 1384 */ 1385 /** 1386 * The value of the status of the image being loaded successfully. 1387 * If the returned status value is 0, the image data is successfully loaded. 1388 * If the returned status value is 1, the image is successfully decoded. 1389 * 1390 * @type { number } 1391 * @syscap SystemCapability.ArkUI.ArkUI.Full 1392 * @crossplatform 1393 * @since 10 1394 * @form 1395 */ 1396 /** 1397 * The value of the status of the image being loaded successfully. 1398 * If the returned status value is 0, the image data is successfully loaded. 1399 * If the returned status value is 1, the image is successfully decoded. 1400 * 1401 * @type { number } 1402 * @syscap SystemCapability.ArkUI.ArkUI.Full 1403 * @crossplatform 1404 * @atomicservice 1405 * @since 11 1406 * @form 1407 */ 1408 loadingStatus: number; 1409 /** 1410 * The width of the picture that is actually drawn. 1411 * 1412 * @type { number } 1413 * @syscap SystemCapability.ArkUI.ArkUI.Full 1414 * @crossplatform 1415 * @since 10 1416 * @form 1417 */ 1418 /** 1419 * The width of the picture that is actually drawn. 1420 * 1421 * @type { number } 1422 * @syscap SystemCapability.ArkUI.ArkUI.Full 1423 * @crossplatform 1424 * @atomicservice 1425 * @since 11 1426 * @form 1427 */ 1428 contentWidth: number; 1429 /** 1430 * The height of the picture that is actually drawn. 1431 * 1432 * @type { number } 1433 * @syscap SystemCapability.ArkUI.ArkUI.Full 1434 * @crossplatform 1435 * @since 10 1436 * @form 1437 */ 1438 /** 1439 * The height of the picture that is actually drawn. 1440 * 1441 * @type { number } 1442 * @syscap SystemCapability.ArkUI.ArkUI.Full 1443 * @crossplatform 1444 * @atomicservice 1445 * @since 11 1446 * @form 1447 */ 1448 contentHeight: number; 1449 /** 1450 * The actual draw is offset from the x-axis of the component itself. 1451 * 1452 * @type { number } 1453 * @syscap SystemCapability.ArkUI.ArkUI.Full 1454 * @crossplatform 1455 * @since 10 1456 * @form 1457 */ 1458 /** 1459 * The actual draw is offset from the x-axis of the component itself. 1460 * 1461 * @type { number } 1462 * @syscap SystemCapability.ArkUI.ArkUI.Full 1463 * @crossplatform 1464 * @atomicservice 1465 * @since 11 1466 * @form 1467 */ 1468 contentOffsetX: number; 1469 /** 1470 * The actual draw is offset from the y-axis of the component itself. 1471 * 1472 * @type { number } 1473 * @syscap SystemCapability.ArkUI.ArkUI.Full 1474 * @crossplatform 1475 * @since 10 1476 * @form 1477 */ 1478 /** 1479 * The actual draw is offset from the y-axis of the component itself. 1480 * 1481 * @type { number } 1482 * @syscap SystemCapability.ArkUI.ArkUI.Full 1483 * @crossplatform 1484 * @atomicservice 1485 * @since 11 1486 * @form 1487 */ 1488 contentOffsetY: number; 1489 }) => void, 1490 ): ImageAttribute; 1491 1492 /** 1493 * This callback is triggered when an exception occurs during image loading. 1494 * The field of "message" carries the detailed information of failed image loading. 1495 * 1496 * @param { function } callback 1497 * @returns { ImageAttribute } 1498 * @syscap SystemCapability.ArkUI.ArkUI.Full 1499 * @form 1500 * @since 9 1501 */ 1502 /** 1503 * This callback is triggered when an exception occurs during image loading. 1504 * The field of "message" carries the detailed information of failed image loading. 1505 * 1506 * @param { function } callback 1507 * @returns { ImageAttribute } 1508 * @syscap SystemCapability.ArkUI.ArkUI.Full 1509 * @crossplatform 1510 * @form 1511 * @since 10 1512 */ 1513 /** 1514 * This callback is triggered when an exception occurs during image loading. 1515 * The field of "message" carries the detailed information of failed image loading. 1516 * 1517 * @param { ImageErrorCallback } callback 1518 * @returns { ImageAttribute } 1519 * @syscap SystemCapability.ArkUI.ArkUI.Full 1520 * @crossplatform 1521 * @form 1522 * @atomicservice 1523 * @since 11 1524 */ 1525 onError(callback: ImageErrorCallback): ImageAttribute; 1526 1527 /** 1528 * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete. 1529 * If the svg image is a wireless loop image, this callback is not triggered. 1530 * 1531 * @param { function } event 1532 * @returns { ImageAttribute } 1533 * @syscap SystemCapability.ArkUI.ArkUI.Full 1534 * @since 7 1535 */ 1536 /** 1537 * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete. 1538 * If the svg image is a wireless loop image, this callback is not triggered. 1539 * 1540 * @param { function } event 1541 * @returns { ImageAttribute } 1542 * @syscap SystemCapability.ArkUI.ArkUI.Full 1543 * @form 1544 * @since 9 1545 */ 1546 /** 1547 * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete. 1548 * If the svg image is a wireless loop image, this callback is not triggered. 1549 * 1550 * @param { function } event 1551 * @returns { ImageAttribute } 1552 * @syscap SystemCapability.ArkUI.ArkUI.Full 1553 * @crossplatform 1554 * @form 1555 * @since 10 1556 */ 1557 /** 1558 * When the loaded source file is a svg image, this callback is triggered when the playback of the svg image is complete. 1559 * If the svg image is a wireless loop image, this callback is not triggered. 1560 * 1561 * @param { function } event 1562 * @returns { ImageAttribute } 1563 * @syscap SystemCapability.ArkUI.ArkUI.Full 1564 * @crossplatform 1565 * @form 1566 * @atomicservice 1567 * @since 11 1568 */ 1569 onFinish(event: () => void): ImageAttribute; 1570 1571 /** 1572 * Enable image analyzer. 1573 * 1574 * @param { boolean} enable 1575 * @returns { ImageAttribute } 1576 * @syscap SystemCapability.ArkUI.ArkUI.Full 1577 * @since 11 1578 */ 1579 /** 1580 * Enable image analyzer. 1581 * 1582 * @param { boolean} enable 1583 * @returns { ImageAttribute } 1584 * @syscap SystemCapability.ArkUI.ArkUI.Full 1585 * @atomicservice 1586 * @since 12 1587 */ 1588 enableAnalyzer(enable: boolean): ImageAttribute; 1589 1590 /** 1591 * Set image analyzer with config. 1592 * 1593 * @param { ImageAnalyzerConfig } config 1594 * @returns { ImageAttribute } 1595 * @syscap SystemCapability.ArkUI.ArkUI.Full 1596 * @systemapi 1597 * @since 11 1598 */ 1599 analyzerConfig(config: ImageAnalyzerConfig): ImageAttribute; 1600 1601 /** 1602 * Set image resizable options. 1603 * 1604 * @param { ResizableOptions } value - Indicates the resizable options. 1605 * @returns { ImageAttribute } Returns the instance of the ImageAttribute. 1606 * @syscap SystemCapability.ArkUI.ArkUI.Full 1607 * @crossplatform 1608 * @since 11 1609 */ 1610 /** 1611 * Set image resizable options. 1612 * 1613 * @param { ResizableOptions } value - Indicates the resizable options. 1614 * @returns { ImageAttribute } Returns the instance of the ImageAttribute. 1615 * @syscap SystemCapability.ArkUI.ArkUI.Full 1616 * @crossplatform 1617 * @atomicservice 1618 * @since 12 1619 */ 1620 resizable(value: ResizableOptions): ImageAttribute; 1621 1622 /** 1623 * Whether to support sensitive privacy information 1624 * 1625 * @param { boolean } supported - Whether to support sensitive privacy information. 1626 * @returns { ImageAttribute } 1627 * @syscap SystemCapability.ArkUI.ArkUI.Full 1628 * @form 1629 * @atomicservice 1630 * @since 12 1631 */ 1632 privacySensitive(supported: boolean): ImageAttribute; 1633 1634 /** 1635 * Set the quality enhancement level of image. 1636 * 1637 * @param { ResolutionQuality } imageQuality 1638 * @returns { ImageAttribute } 1639 * @syscap SystemCapability.ArkUI.ArkUI.Full 1640 * @systemapi 1641 * @since 12 1642 */ 1643 enhancedImageQuality(imageQuality: ResolutionQuality): ImageAttribute; 1644} 1645 1646/** 1647 * Defines Image Component. 1648 * 1649 * @syscap SystemCapability.ArkUI.ArkUI.Full 1650 * @since 7 1651 */ 1652/** 1653 * Defines Image Component. 1654 * 1655 * @syscap SystemCapability.ArkUI.ArkUI.Full 1656 * @form 1657 * @since 9 1658 */ 1659/** 1660 * Defines Image Component. 1661 * 1662 * @syscap SystemCapability.ArkUI.ArkUI.Full 1663 * @crossplatform 1664 * @form 1665 * @since 10 1666 */ 1667/** 1668 * Defines Image Component. 1669 * 1670 * @syscap SystemCapability.ArkUI.ArkUI.Full 1671 * @crossplatform 1672 * @form 1673 * @atomicservice 1674 * @since 11 1675 */ 1676declare const Image: ImageInterface; 1677 1678/** 1679 * Defines Image Component instance. 1680 * 1681 * @syscap SystemCapability.ArkUI.ArkUI.Full 1682 * @since 7 1683 */ 1684/** 1685 * Defines Image Component instance. 1686 * 1687 * @syscap SystemCapability.ArkUI.ArkUI.Full 1688 * @form 1689 * @since 9 1690 */ 1691/** 1692 * Defines Image Component instance. 1693 * 1694 * @syscap SystemCapability.ArkUI.ArkUI.Full 1695 * @crossplatform 1696 * @form 1697 * @since 10 1698 */ 1699/** 1700 * Defines Image Component instance. 1701 * 1702 * @syscap SystemCapability.ArkUI.ArkUI.Full 1703 * @crossplatform 1704 * @form 1705 * @atomicservice 1706 * @since 11 1707 */ 1708declare const ImageInstance: ImageAttribute; 1709 1710/** 1711 * @type ImageErrorCallback 1712 * @syscap SystemCapability.ArkUI.ArkUI.Full 1713 * @form 1714 * @since 9 1715 */ 1716/** 1717 * @type ImageErrorCallback 1718 * @syscap SystemCapability.ArkUI.ArkUI.Full 1719 * @crossplatform 1720 * @form 1721 * @since 10 1722 */ 1723/** 1724 * @typedef { function } ImageErrorCallback 1725 * @param { ImageError } error 1726 * @syscap SystemCapability.ArkUI.ArkUI.Full 1727 * @crossplatform 1728 * @form 1729 * @atomicservice 1730 * @since 11 1731 */ 1732type ImageErrorCallback = (error: ImageError) => void; 1733 1734/** 1735 * @interface ImageError 1736 * @syscap SystemCapability.ArkUI.ArkUI.Full 1737 * @form 1738 * @since 9 1739 */ 1740/** 1741 * @interface ImageError 1742 * @syscap SystemCapability.ArkUI.ArkUI.Full 1743 * @crossplatform 1744 * @form 1745 * @since 10 1746 */ 1747/** 1748 * @interface ImageError 1749 * @syscap SystemCapability.ArkUI.ArkUI.Full 1750 * @crossplatform 1751 * @form 1752 * @atomicservice 1753 * @since 11 1754 */ 1755declare interface ImageError { 1756 /** 1757 * Component width. 1758 * 1759 * @type { number } 1760 * @syscap SystemCapability.ArkUI.ArkUI.Full 1761 * @form 1762 * @since 9 1763 */ 1764 /** 1765 * Component width. 1766 * 1767 * @type { number } 1768 * @syscap SystemCapability.ArkUI.ArkUI.Full 1769 * @crossplatform 1770 * @form 1771 * @since 10 1772 */ 1773 /** 1774 * Component width. 1775 * 1776 * @type { number } 1777 * @syscap SystemCapability.ArkUI.ArkUI.Full 1778 * @crossplatform 1779 * @form 1780 * @atomicservice 1781 * @since 11 1782 */ 1783 componentWidth: number; 1784 1785 /** 1786 * Component height. 1787 * 1788 * @type { number } 1789 * @syscap SystemCapability.ArkUI.ArkUI.Full 1790 * @form 1791 * @since 9 1792 */ 1793 /** 1794 * Component height. 1795 * 1796 * @type { number } 1797 * @syscap SystemCapability.ArkUI.ArkUI.Full 1798 * @crossplatform 1799 * @form 1800 * @since 10 1801 */ 1802 /** 1803 * Component height. 1804 * 1805 * @type { number } 1806 * @syscap SystemCapability.ArkUI.ArkUI.Full 1807 * @crossplatform 1808 * @form 1809 * @atomicservice 1810 * @since 11 1811 */ 1812 componentHeight: number; 1813 1814 /** 1815 * Message. 1816 * 1817 * @type { string } 1818 * @syscap SystemCapability.ArkUI.ArkUI.Full 1819 * @crossplatform 1820 * @form 1821 * @since 10 1822 */ 1823 /** 1824 * Message. 1825 * 1826 * @type { string } 1827 * @syscap SystemCapability.ArkUI.ArkUI.Full 1828 * @crossplatform 1829 * @form 1830 * @atomicservice 1831 * @since 11 1832 */ 1833 message: string 1834} 1835 1836/** 1837 * Image resizable options 1838 * 1839 * @interface ResizableOptions 1840 * @syscap SystemCapability.ArkUI.ArkUI.Full 1841 * @crossplatform 1842 * @since 11 1843 */ 1844/** 1845 * Image resizable options 1846 * 1847 * @interface ResizableOptions 1848 * @syscap SystemCapability.ArkUI.ArkUI.Full 1849 * @crossplatform 1850 * @atomicservice 1851 * @since 12 1852 */ 1853declare interface ResizableOptions { 1854 /** 1855 * Image slice widths. 1856 * 1857 * @type { ?EdgeWidths } 1858 * @syscap SystemCapability.ArkUI.ArkUI.Full 1859 * @crossplatform 1860 * @since 11 1861 */ 1862 /** 1863 * Image slice widths. 1864 * 1865 * @type { ?EdgeWidths } 1866 * @syscap SystemCapability.ArkUI.ArkUI.Full 1867 * @crossplatform 1868 * @atomicservice 1869 * @since 12 1870 */ 1871 slice?: EdgeWidths; 1872 1873 /** 1874 * Image lattice. 1875 * 1876 * @type { ?DrawingLattice } 1877 * @syscap SystemCapability.ArkUI.ArkUI.Full 1878 * @crossplatform 1879 * @atomicservice 1880 * @since 12 1881 */ 1882 lattice?: DrawingLattice; 1883} 1884