-
Notifications
You must be signed in to change notification settings - Fork 0
/
ImageDecoder.xml
1838 lines (1836 loc) · 123 KB
/
ImageDecoder.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Type Name="ImageDecoder" FullName="Android.Graphics.ImageDecoder">
<TypeSignature Language="C#" Value="public sealed class ImageDecoder : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Java.Lang.IAutoCloseable" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit ImageDecoder extends Java.Lang.Object implements class Android.Runtime.IJavaObject, class Java.Interop.IJavaPeerable, class Java.Lang.IAutoCloseable, class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:Android.Graphics.ImageDecoder" />
<TypeSignature Language="F#" Value="type ImageDecoder = class
 inherit Object
 interface IAutoCloseable
 interface IJavaObject
 interface IDisposable
 interface IJavaPeerable" />
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Java.Lang.Object</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>Android.Runtime.IJavaObject</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Interop.IJavaPeerable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Lang.IAutoCloseable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("android/graphics/ImageDecoder", ApiSince=28, DoNotGenerateAcw=true)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("android/graphics/ImageDecoder", ApiSince=28, DoNotGenerateAcw=true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>A class for converting encoded images (like <c>PNG</c>, <c>JPEG</c>,
<c>WEBP</c>, <c>GIF</c>, or <c>HEIF</c>) into <c>Drawable</c> or
<c>Bitmap</c> objects.</summary>
<remarks>
<para>A class for converting encoded images (like <c>PNG</c>, <c>JPEG</c>,
<c>WEBP</c>, <c>GIF</c>, or <c>HEIF</c>) into <c>Drawable</c> or
<c>Bitmap</c> objects.</para>
<para>To use it, first create a <c>Source Source</c> using one of the
<c>createSource</c> overloads. For example, to decode from a <c>Uri</c>, call
<c>#createSource(ContentResolver, Uri)</c> and pass the result to
<c>#decodeDrawable(Source)</c> or <c>#decodeBitmap(Source)</c>:</para>
<code lang="text/java">File file = new File(...);
ImageDecoder.Source source = ImageDecoder.createSource(file);
Drawable drawable = ImageDecoder.decodeDrawable(source);
</code>
<para>To change the default settings, pass the <c>Source Source</c> and an
<c>OnHeaderDecodedListener OnHeaderDecodedListener</c> to
<c>#decodeDrawable(Source, OnHeaderDecodedListener)</c> or
<c>#decodeBitmap(Source, OnHeaderDecodedListener)</c>. For example, to
create a sampled image with half the width and height of the original image,
call <c>#setTargetSampleSize setTargetSampleSize(2)</c> inside
<c>OnHeaderDecodedListener#onHeaderDecoded onHeaderDecoded</c>:</para>
<code lang="text/java">OnHeaderDecodedListener listener = new OnHeaderDecodedListener() {
public void onHeaderDecoded(ImageDecoder decoder, ImageInfo info, Source source) {
decoder.setTargetSampleSize(2);
}
};
Drawable drawable = ImageDecoder.decodeDrawable(source, listener);
</code>
<para>The <c>ImageInfo ImageInfo</c> contains information about the encoded image, like
its width and height, and the <c>Source Source</c> can be used to match to a particular
<c>Source Source</c> if a single <c>OnHeaderDecodedListener OnHeaderDecodedListener</c>
is used with multiple <c>Source Source</c> objects.</para>
<para>The <c>OnHeaderDecodedListener OnHeaderDecodedListener</c> can also be implemented
as a lambda:</para>
<code lang="text/java">Drawable drawable = ImageDecoder.decodeDrawable(source, (decoder, info, src) -&gt; {
decoder.setTargetSampleSize(2);
});
</code>
<para>If the encoded image is an animated <c>GIF</c> or <c>WEBP</c>,
<c>#decodeDrawable decodeDrawable</c> will return an <c>AnimatedImageDrawable</c>. To
start its animation, call <c>AnimatedImageDrawable#start AnimatedImageDrawable.start()</c>:</para>
<code lang="text/java">Drawable drawable = ImageDecoder.decodeDrawable(source);
if (drawable instanceof AnimatedImageDrawable) {
((AnimatedImageDrawable) drawable).start();
}
</code>
<para>By default, a <c>Bitmap</c> created by <c>ImageDecoder</c> (including
one that is inside a <c>Drawable</c>) will be immutable (i.e.
<c>Bitmap#isMutable Bitmap.isMutable()</c> returns <c>false</c>), and it
will typically have <c>Config</c><c>Bitmap.Config#HARDWARE</c>. Although
these properties can be changed with <c>#setMutableRequired setMutableRequired(true)</c>
(which is only compatible with <c>#decodeBitmap(Source)</c> and
<c>#decodeBitmap(Source, OnHeaderDecodedListener)</c>) and <c>#setAllocator</c>,
it is also possible to apply custom effects regardless of the mutability of
the final returned object by passing a <c>PostProcessor</c> to
<c>#setPostProcessor setPostProcessor</c>. A <c>PostProcessor</c> can also be a lambda:</para>
<code lang="text/java">Drawable drawable = ImageDecoder.decodeDrawable(source, (decoder, info, src) -&gt; {
decoder.setPostProcessor((canvas) -&gt; {
// This will create rounded corners.
Path path = new Path();
path.setFillType(Path.FillType.INVERSE_EVEN_ODD);
int width = canvas.getWidth();
int height = canvas.getHeight();
path.addRoundRect(0, 0, width, height, 20, 20, Path.Direction.CW);
Paint paint = new Paint();
paint.setAntiAlias(true);
paint.setColor(Color.TRANSPARENT);
paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC));
canvas.drawPath(path, paint);
return PixelFormat.TRANSLUCENT;
});
});
</code>
<para>If the encoded image is incomplete or contains an error, or if an
<c>Exception</c> occurs during decoding, a <c>DecodeException DecodeException</c>
will be thrown. In some cases, the <c>ImageDecoder</c> may have decoded part of
the image. In order to display the partial image, an
<c>OnPartialImageListener OnPartialImageListener</c> must be passed to
<c>#setOnPartialImageListener setOnPartialImageListener</c>. For example:</para>
<code lang="text/java">Drawable drawable = ImageDecoder.decodeDrawable(source, (decoder, info, src) -&gt; {
decoder.setOnPartialImageListener((DecodeException e) -&gt; {
// Returning true indicates to create a Drawable or Bitmap even
// if the whole image could not be decoded. Any remaining lines
// will be blank.
return true;
});
});
</code>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/graphics/ImageDecoder" title="Reference documentation">Java documentation for <code>android.graphics.ImageDecoder</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
<Members>
<Member MemberName="AllocatorDefault">
<MemberSignature Language="C#" Value="public const Android.Graphics.ImageDecoderAllocator AllocatorDefault = 0;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.Graphics.ImageDecoderAllocator AllocatorDefault = (0)" />
<MemberSignature Language="DocId" Value="F:Android.Graphics.ImageDecoder.AllocatorDefault" />
<MemberSignature Language="F#" Value="val mutable AllocatorDefault : Android.Graphics.ImageDecoderAllocator" Usage="Android.Graphics.ImageDecoder.AllocatorDefault" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("ALLOCATOR_DEFAULT", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("ALLOCATOR_DEFAULT", ApiSince=28)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageDecoderAllocator enum directly instead of this field.", true)]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageDecoderAllocator enum directly instead of this field.", true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Graphics.ImageDecoderAllocator</ReturnType>
</ReturnValue>
<MemberValue>0</MemberValue>
<Docs>
<summary>Use the default allocation for the pixel memory.</summary>
<remarks>
<para>Use the default allocation for the pixel memory.
Will typically result in a <c>Bitmap.Config#HARDWARE</c>
allocation, but may be software for small images. In addition, this will
switch to software when HARDWARE is incompatible, e.g.
<c>#setMutableRequired setMutableRequired(true)</c> or
<c>#setDecodeAsAlphaMaskEnabled setDecodeAsAlphaMaskEnabled(true)</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/graphics/ImageDecoder#ALLOCATOR_DEFAULT" title="Reference documentation">Java documentation for <code>android.graphics.ImageDecoder.ALLOCATOR_DEFAULT</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="AllocatorHardware">
<MemberSignature Language="C#" Value="public const Android.Graphics.ImageDecoderAllocator AllocatorHardware = 3;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.Graphics.ImageDecoderAllocator AllocatorHardware = (3)" />
<MemberSignature Language="DocId" Value="F:Android.Graphics.ImageDecoder.AllocatorHardware" />
<MemberSignature Language="F#" Value="val mutable AllocatorHardware : Android.Graphics.ImageDecoderAllocator" Usage="Android.Graphics.ImageDecoder.AllocatorHardware" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("ALLOCATOR_HARDWARE", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("ALLOCATOR_HARDWARE", ApiSince=28)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageDecoderAllocator enum directly instead of this field.", true)]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageDecoderAllocator enum directly instead of this field.", true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Graphics.ImageDecoderAllocator</ReturnType>
</ReturnValue>
<MemberValue>3</MemberValue>
<Docs>
<summary>Require a <c>Bitmap.Config#HARDWARE</c><c>Bitmap</c>.</summary>
<remarks>
<para>Require a <c>Bitmap.Config#HARDWARE</c><c>Bitmap</c>.</para>
<para>When this is combined with incompatible options, like
<c>#setMutableRequired setMutableRequired(true)</c> or
<c>#setDecodeAsAlphaMaskEnabled setDecodeAsAlphaMaskEnabled(true)</c>,
<c>#decodeDrawable decodeDrawable</c> or <c>#decodeBitmap decodeBitmap</c>
will throw an <c>java.lang.IllegalStateException</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/graphics/ImageDecoder#ALLOCATOR_HARDWARE" title="Reference documentation">Java documentation for <code>android.graphics.ImageDecoder.ALLOCATOR_HARDWARE</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="AllocatorSharedMemory">
<MemberSignature Language="C#" Value="public const Android.Graphics.ImageDecoderAllocator AllocatorSharedMemory = 2;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.Graphics.ImageDecoderAllocator AllocatorSharedMemory = (2)" />
<MemberSignature Language="DocId" Value="F:Android.Graphics.ImageDecoder.AllocatorSharedMemory" />
<MemberSignature Language="F#" Value="val mutable AllocatorSharedMemory : Android.Graphics.ImageDecoderAllocator" Usage="Android.Graphics.ImageDecoder.AllocatorSharedMemory" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("ALLOCATOR_SHARED_MEMORY", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("ALLOCATOR_SHARED_MEMORY", ApiSince=28)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageDecoderAllocator enum directly instead of this field.", true)]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageDecoderAllocator enum directly instead of this field.", true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Graphics.ImageDecoderAllocator</ReturnType>
</ReturnValue>
<MemberValue>2</MemberValue>
<Docs>
<summary>Use shared memory for the pixel memory.</summary>
<remarks>
<para>Use shared memory for the pixel memory.</para>
<para />
<para>Useful for sharing across processes.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/graphics/ImageDecoder#ALLOCATOR_SHARED_MEMORY" title="Reference documentation">Java documentation for <code>android.graphics.ImageDecoder.ALLOCATOR_SHARED_MEMORY</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="AllocatorSoftware">
<MemberSignature Language="C#" Value="public const Android.Graphics.ImageDecoderAllocator AllocatorSoftware = 1;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.Graphics.ImageDecoderAllocator AllocatorSoftware = (1)" />
<MemberSignature Language="DocId" Value="F:Android.Graphics.ImageDecoder.AllocatorSoftware" />
<MemberSignature Language="F#" Value="val mutable AllocatorSoftware : Android.Graphics.ImageDecoderAllocator" Usage="Android.Graphics.ImageDecoder.AllocatorSoftware" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("ALLOCATOR_SOFTWARE", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("ALLOCATOR_SOFTWARE", ApiSince=28)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageDecoderAllocator enum directly instead of this field.", true)]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageDecoderAllocator enum directly instead of this field.", true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Graphics.ImageDecoderAllocator</ReturnType>
</ReturnValue>
<MemberValue>1</MemberValue>
<Docs>
<summary>Use a software allocation for the pixel memory.</summary>
<remarks>
<para>Use a software allocation for the pixel memory.</para>
<para />
<para>Useful for drawing to a software <c>Canvas</c> or for
accessing the pixels on the final output.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/graphics/ImageDecoder#ALLOCATOR_SOFTWARE" title="Reference documentation">Java documentation for <code>android.graphics.ImageDecoder.ALLOCATOR_SOFTWARE</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Close">
<MemberSignature Language="C#" Value="public void Close ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Close() cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Graphics.ImageDecoder.Close" />
<MemberSignature Language="F#" Value="abstract member Close : unit -> unit
override this.Close : unit -> unit" Usage="imageDecoder.Close " />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Java.Lang.IAutoCloseable.Close</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("close", "()V", "", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("close", "()V", "", ApiSince=28)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Closes this resource, relinquishing any underlying resources.</summary>
<remarks>
<para>Closes this resource, relinquishing any underlying resources. This method
is invoked automatically on objects managed by the try-with-resources
statement.</para>
<para>This is an implementation detail of <c>ImageDecoder</c>, and should
never be called manually.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/graphics/ImageDecoder#close()" title="Reference documentation">Java documentation for <code>android.graphics.ImageDecoder.close()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="CreateSource">
<MemberSignature Language="C#" Value="public static Android.Graphics.ImageDecoder.Source CreateSource (Java.IO.File file);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Android.Graphics.ImageDecoder/Source CreateSource(class Java.IO.File file) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Graphics.ImageDecoder.CreateSource(Java.IO.File)" />
<MemberSignature Language="F#" Value="static member CreateSource : Java.IO.File -> Android.Graphics.ImageDecoder.Source" Usage="Android.Graphics.ImageDecoder.CreateSource file" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("createSource", "(Ljava/io/File;)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("createSource", "(Ljava/io/File;)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=28)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Graphics.ImageDecoder+Source</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="file" Type="Java.IO.File" />
</Parameters>
<Docs>
<param name="file">To be added.</param>
<summary>Create a new <c>Source</c> from a <c>android.net.Uri</c>.</summary>
<returns>a new Source object, which can be passed to
<c>#decodeDrawable</c> or <c>#decodeBitmap</c>.</returns>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/graphics/ImageDecoder#createSource(android.content.ContentResolver,%20android.net.Uri)" title="Reference documentation">Java documentation for <code>android.graphics.ImageDecoder.createSource(android.content.ContentResolver, android.net.Uri)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="CreateSource">
<MemberSignature Language="C#" Value="public static Android.Graphics.ImageDecoder.Source CreateSource (Java.Nio.ByteBuffer buffer);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Android.Graphics.ImageDecoder/Source CreateSource(class Java.Nio.ByteBuffer buffer) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Graphics.ImageDecoder.CreateSource(Java.Nio.ByteBuffer)" />
<MemberSignature Language="F#" Value="static member CreateSource : Java.Nio.ByteBuffer -> Android.Graphics.ImageDecoder.Source" Usage="Android.Graphics.ImageDecoder.CreateSource buffer" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("createSource", "(Ljava/nio/ByteBuffer;)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("createSource", "(Ljava/nio/ByteBuffer;)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=28)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Graphics.ImageDecoder+Source</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="buffer" Type="Java.Nio.ByteBuffer" />
</Parameters>
<Docs>
<param name="buffer">To be added.</param>
<summary>Create a new <c>Source</c> from a <c>android.net.Uri</c>.</summary>
<returns>a new Source object, which can be passed to
<c>#decodeDrawable</c> or <c>#decodeBitmap</c>.</returns>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/graphics/ImageDecoder#createSource(android.content.ContentResolver,%20android.net.Uri)" title="Reference documentation">Java documentation for <code>android.graphics.ImageDecoder.createSource(android.content.ContentResolver, android.net.Uri)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="CreateSource">
<MemberSignature Language="C#" Value="public static Android.Graphics.ImageDecoder.Source CreateSource (Java.Util.Concurrent.ICallable callable);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Android.Graphics.ImageDecoder/Source CreateSource(class Java.Util.Concurrent.ICallable callable) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Graphics.ImageDecoder.CreateSource(Java.Util.Concurrent.ICallable)" />
<MemberSignature Language="F#" Value="static member CreateSource : Java.Util.Concurrent.ICallable -> Android.Graphics.ImageDecoder.Source" Usage="Android.Graphics.ImageDecoder.CreateSource callable" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("createSource", "(Ljava/util/concurrent/Callable;)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=29)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("createSource", "(Ljava/util/concurrent/Callable;)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=29)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android29.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android29.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Graphics.ImageDecoder+Source</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="callable" Type="Java.Util.Concurrent.ICallable" />
</Parameters>
<Docs>
<param name="callable">To be added.</param>
<summary>Create a new <c>Source</c> from a <c>android.net.Uri</c>.</summary>
<returns>a new Source object, which can be passed to
<c>#decodeDrawable</c> or <c>#decodeBitmap</c>.</returns>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/graphics/ImageDecoder#createSource(android.content.ContentResolver,%20android.net.Uri)" title="Reference documentation">Java documentation for <code>android.graphics.ImageDecoder.createSource(android.content.ContentResolver, android.net.Uri)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="CreateSource">
<MemberSignature Language="C#" Value="public static Android.Graphics.ImageDecoder.Source CreateSource (byte[] data);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Android.Graphics.ImageDecoder/Source CreateSource(unsigned int8[] data) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Graphics.ImageDecoder.CreateSource(System.Byte[])" />
<MemberSignature Language="F#" Value="static member CreateSource : byte[] -> Android.Graphics.ImageDecoder.Source" Usage="Android.Graphics.ImageDecoder.CreateSource data" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("createSource", "([B)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=31)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("createSource", "([B)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=31)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android31.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android31.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Graphics.ImageDecoder+Source</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="data" Type="System.Byte[]" />
</Parameters>
<Docs>
<param name="data">To be added.</param>
<summary>Create a new <c>Source</c> from a <c>android.net.Uri</c>.</summary>
<returns>a new Source object, which can be passed to
<c>#decodeDrawable</c> or <c>#decodeBitmap</c>.</returns>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/graphics/ImageDecoder#createSource(android.content.ContentResolver,%20android.net.Uri)" title="Reference documentation">Java documentation for <code>android.graphics.ImageDecoder.createSource(android.content.ContentResolver, android.net.Uri)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="CreateSource">
<MemberSignature Language="C#" Value="public static Android.Graphics.ImageDecoder.Source CreateSource (Android.Content.ContentResolver cr, Android.Net.Uri uri);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Android.Graphics.ImageDecoder/Source CreateSource(class Android.Content.ContentResolver cr, class Android.Net.Uri uri) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Graphics.ImageDecoder.CreateSource(Android.Content.ContentResolver,Android.Net.Uri)" />
<MemberSignature Language="F#" Value="static member CreateSource : Android.Content.ContentResolver * Android.Net.Uri -> Android.Graphics.ImageDecoder.Source" Usage="Android.Graphics.ImageDecoder.CreateSource (cr, uri)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("createSource", "(Landroid/content/ContentResolver;Landroid/net/Uri;)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("createSource", "(Landroid/content/ContentResolver;Landroid/net/Uri;)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=28)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Graphics.ImageDecoder+Source</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="cr" Type="Android.Content.ContentResolver" />
<Parameter Name="uri" Type="Android.Net.Uri" />
</Parameters>
<Docs>
<param name="cr">to retrieve from.</param>
<param name="uri">of the image file.</param>
<summary>Create a new <c>Source</c> from a <c>android.net.Uri</c>.</summary>
<returns>a new Source object, which can be passed to
<c>#decodeDrawable</c> or <c>#decodeBitmap</c>.</returns>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/graphics/ImageDecoder#createSource(android.content.ContentResolver,%20android.net.Uri)" title="Reference documentation">Java documentation for <code>android.graphics.ImageDecoder.createSource(android.content.ContentResolver, android.net.Uri)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="CreateSource">
<MemberSignature Language="C#" Value="public static Android.Graphics.ImageDecoder.Source CreateSource (Android.Content.Res.AssetManager assets, string fileName);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Android.Graphics.ImageDecoder/Source CreateSource(class Android.Content.Res.AssetManager assets, string fileName) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Graphics.ImageDecoder.CreateSource(Android.Content.Res.AssetManager,System.String)" />
<MemberSignature Language="F#" Value="static member CreateSource : Android.Content.Res.AssetManager * string -> Android.Graphics.ImageDecoder.Source" Usage="Android.Graphics.ImageDecoder.CreateSource (assets, fileName)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("createSource", "(Landroid/content/res/AssetManager;Ljava/lang/String;)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("createSource", "(Landroid/content/res/AssetManager;Ljava/lang/String;)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=28)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Graphics.ImageDecoder+Source</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="assets" Type="Android.Content.Res.AssetManager" />
<Parameter Name="fileName" Type="System.String" />
</Parameters>
<Docs>
<param name="assets">To be added.</param>
<param name="fileName">To be added.</param>
<summary>Create a new <c>Source</c> from a <c>android.net.Uri</c>.</summary>
<returns>a new Source object, which can be passed to
<c>#decodeDrawable</c> or <c>#decodeBitmap</c>.</returns>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/graphics/ImageDecoder#createSource(android.content.ContentResolver,%20android.net.Uri)" title="Reference documentation">Java documentation for <code>android.graphics.ImageDecoder.createSource(android.content.ContentResolver, android.net.Uri)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="CreateSource">
<MemberSignature Language="C#" Value="public static Android.Graphics.ImageDecoder.Source CreateSource (Android.Content.Res.Resources res, int resId);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Android.Graphics.ImageDecoder/Source CreateSource(class Android.Content.Res.Resources res, int32 resId) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Graphics.ImageDecoder.CreateSource(Android.Content.Res.Resources,System.Int32)" />
<MemberSignature Language="F#" Value="static member CreateSource : Android.Content.Res.Resources * int -> Android.Graphics.ImageDecoder.Source" Usage="Android.Graphics.ImageDecoder.CreateSource (res, resId)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("createSource", "(Landroid/content/res/Resources;I)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("createSource", "(Landroid/content/res/Resources;I)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=28)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Graphics.ImageDecoder+Source</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="res" Type="Android.Content.Res.Resources" />
<Parameter Name="resId" Type="System.Int32" />
</Parameters>
<Docs>
<param name="res">To be added.</param>
<param name="resId">To be added.</param>
<summary>Create a new <c>Source</c> from a <c>android.net.Uri</c>.</summary>
<returns>a new Source object, which can be passed to
<c>#decodeDrawable</c> or <c>#decodeBitmap</c>.</returns>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/graphics/ImageDecoder#createSource(android.content.ContentResolver,%20android.net.Uri)" title="Reference documentation">Java documentation for <code>android.graphics.ImageDecoder.createSource(android.content.ContentResolver, android.net.Uri)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="CreateSource">
<MemberSignature Language="C#" Value="public static Android.Graphics.ImageDecoder.Source CreateSource (byte[] data, int offset, int length);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Android.Graphics.ImageDecoder/Source CreateSource(unsigned int8[] data, int32 offset, int32 length) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Graphics.ImageDecoder.CreateSource(System.Byte[],System.Int32,System.Int32)" />
<MemberSignature Language="F#" Value="static member CreateSource : byte[] * int * int -> Android.Graphics.ImageDecoder.Source" Usage="Android.Graphics.ImageDecoder.CreateSource (data, offset, length)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("createSource", "([BII)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=31)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("createSource", "([BII)Landroid/graphics/ImageDecoder$Source;", "", ApiSince=31)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android31.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android31.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Graphics.ImageDecoder+Source</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="data" Type="System.Byte[]" />
<Parameter Name="offset" Type="System.Int32" />
<Parameter Name="length" Type="System.Int32" />
</Parameters>
<Docs>
<param name="data">To be added.</param>
<param name="offset">To be added.</param>
<param name="length">To be added.</param>
<summary>Create a new <c>Source</c> from a <c>android.net.Uri</c>.</summary>
<returns>a new Source object, which can be passed to
<c>#decodeDrawable</c> or <c>#decodeBitmap</c>.</returns>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/graphics/ImageDecoder#createSource(android.content.ContentResolver,%20android.net.Uri)" title="Reference documentation">Java documentation for <code>android.graphics.ImageDecoder.createSource(android.content.ContentResolver, android.net.Uri)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Crop">
<MemberSignature Language="C#" Value="public Android.Graphics.Rect? Crop { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Android.Graphics.Rect Crop" />
<MemberSignature Language="DocId" Value="P:Android.Graphics.ImageDecoder.Crop" />
<MemberSignature Language="F#" Value="member this.Crop : Android.Graphics.Rect with get, set" Usage="Android.Graphics.ImageDecoder.Crop" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getCrop", "()Landroid/graphics/Rect;", "", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getCrop", "()Landroid/graphics/Rect;", "", ApiSince=28)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[set: Android.Runtime.Register("setCrop", "(Landroid/graphics/Rect;)V", "", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<set: Android.Runtime.Register("setCrop", "(Landroid/graphics/Rect;)V", "", ApiSince=28)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[set: System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<set: System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Graphics.Rect</ReturnType>
</ReturnValue>
<Docs>
<summary>Return the cropping rectangle, if set. -or- Crop the output to <c>subset</c> of the (possibly) scaled image.</summary>
<value>To be added.</value>
<remarks>
<para>Property getter documentation:</para>
<para>Return the cropping rectangle, if set.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/graphics/ImageDecoder#getCrop()" title="Reference documentation">Java documentation for <code>android.graphics.ImageDecoder.getCrop()</code>.</a>
</format>
</para>
<para>Property setter documentation:</para>
<para>Crop the output to <c>subset</c> of the (possibly) scaled image.</para>
<para>
<c>subset</c> must be contained within the size set by
<c>#setTargetSize</c> or the bounds of the image if setTargetSize was
not called. Otherwise an <c>IllegalStateException</c> will be thrown by
<c>#decodeDrawable decodeDrawable</c>/<c>#decodeBitmap decodeBitmap</c>.</para>
<para>NOT intended as a replacement for
<c>BitmapRegionDecoder#decodeRegion BitmapRegionDecoder.decodeRegion()</c>.
This supports all formats, but merely crops the output.</para>
<para>Like all setters on ImageDecoder, this must be called inside
<c>OnHeaderDecodedListener#onHeaderDecoded onHeaderDecoded</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/graphics/ImageDecoder#setCrop(android.graphics.Rect)" title="Reference documentation">Java documentation for <code>android.graphics.ImageDecoder.setCrop(android.graphics.Rect)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="DecodeAsAlphaMaskEnabled">
<MemberSignature Language="C#" Value="public bool DecodeAsAlphaMaskEnabled { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool DecodeAsAlphaMaskEnabled" />
<MemberSignature Language="DocId" Value="P:Android.Graphics.ImageDecoder.DecodeAsAlphaMaskEnabled" />
<MemberSignature Language="F#" Value="member this.DecodeAsAlphaMaskEnabled : bool with get, set" Usage="Android.Graphics.ImageDecoder.DecodeAsAlphaMaskEnabled" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("isDecodeAsAlphaMaskEnabled", "()Z", "", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("isDecodeAsAlphaMaskEnabled", "()Z", "", ApiSince=28)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[set: Android.Runtime.Register("setDecodeAsAlphaMaskEnabled", "(Z)V", "", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<set: Android.Runtime.Register("setDecodeAsAlphaMaskEnabled", "(Z)V", "", ApiSince=28)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[set: System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<set: System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Return whether to treat single channel input as alpha. -or- Specify whether to potentially treat the output as an alpha mask.</summary>
<value>To be added.</value>
<remarks>
<para>Property getter documentation:</para>
<para>Return whether to treat single channel input as alpha.</para>
<para />
<para>This returns whether <c>#setDecodeAsAlphaMaskEnabled</c> was set to
<c>true</c>. It may still return <c>true</c> even if the image has
more than one channel and therefore will not be treated as an alpha
mask.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/graphics/ImageDecoder#isDecodeAsAlphaMaskEnabled()" title="Reference documentation">Java documentation for <code>android.graphics.ImageDecoder.isDecodeAsAlphaMaskEnabled()</code>.</a>
</format>
</para>
<para>Property setter documentation:</para>
<para>Specify whether to potentially treat the output as an alpha mask.</para>
<para />
<para>If this is set to <c>true</c> and the image is encoded in a format
with only one channel, treat that channel as alpha. Otherwise this call has
no effect.</para>
<para>This is incompatible with <c>#ALLOCATOR_HARDWARE</c>. Trying to
combine them will result in <c>#decodeDrawable decodeDrawable</c>/
<c>#decodeBitmap decodeBitmap</c> throwing an
<c>java.lang.IllegalStateException</c>.</para>
<para>Like all setters on ImageDecoder, this must be called inside
<c>OnHeaderDecodedListener#onHeaderDecoded onHeaderDecoded</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/graphics/ImageDecoder#setDecodeAsAlphaMaskEnabled(boolean)" title="Reference documentation">Java documentation for <code>android.graphics.ImageDecoder.setDecodeAsAlphaMaskEnabled(boolean)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="DecodeBitmap">
<MemberSignature Language="C#" Value="public static Android.Graphics.Bitmap DecodeBitmap (Android.Graphics.ImageDecoder.Source src);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Android.Graphics.Bitmap DecodeBitmap(class Android.Graphics.ImageDecoder/Source src) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Graphics.ImageDecoder.DecodeBitmap(Android.Graphics.ImageDecoder.Source)" />
<MemberSignature Language="F#" Value="static member DecodeBitmap : Android.Graphics.ImageDecoder.Source -> Android.Graphics.Bitmap" Usage="Android.Graphics.ImageDecoder.DecodeBitmap src" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("decodeBitmap", "(Landroid/graphics/ImageDecoder$Source;)Landroid/graphics/Bitmap;", "", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("decodeBitmap", "(Landroid/graphics/ImageDecoder$Source;)Landroid/graphics/Bitmap;", "", ApiSince=28)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Graphics.Bitmap</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="src" Type="Android.Graphics.ImageDecoder+Source" />
</Parameters>
<Docs>
<param name="src">To be added.</param>
<summary>See <c>#decodeBitmap(Source, OnHeaderDecodedListener)</c>.</summary>
<returns>To be added.</returns>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/graphics/ImageDecoder#decodeBitmap(android.graphics.Source)" title="Reference documentation">Java documentation for <code>android.graphics.ImageDecoder.decodeBitmap(android.graphics.Source)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="DecodeBitmap">
<MemberSignature Language="C#" Value="public static Android.Graphics.Bitmap DecodeBitmap (Android.Graphics.ImageDecoder.Source src, Android.Graphics.ImageDecoder.IOnHeaderDecodedListener listener);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Android.Graphics.Bitmap DecodeBitmap(class Android.Graphics.ImageDecoder/Source src, class Android.Graphics.ImageDecoder/IOnHeaderDecodedListener listener) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Graphics.ImageDecoder.DecodeBitmap(Android.Graphics.ImageDecoder.Source,Android.Graphics.ImageDecoder.IOnHeaderDecodedListener)" />
<MemberSignature Language="F#" Value="static member DecodeBitmap : Android.Graphics.ImageDecoder.Source * Android.Graphics.ImageDecoder.IOnHeaderDecodedListener -> Android.Graphics.Bitmap" Usage="Android.Graphics.ImageDecoder.DecodeBitmap (src, listener)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("decodeBitmap", "(Landroid/graphics/ImageDecoder$Source;Landroid/graphics/ImageDecoder$OnHeaderDecodedListener;)Landroid/graphics/Bitmap;", "", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("decodeBitmap", "(Landroid/graphics/ImageDecoder$Source;Landroid/graphics/ImageDecoder$OnHeaderDecodedListener;)Landroid/graphics/Bitmap;", "", ApiSince=28)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Graphics.Bitmap</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="src" Type="Android.Graphics.ImageDecoder+Source" />
<Parameter Name="listener" Type="Android.Graphics.ImageDecoder+IOnHeaderDecodedListener" />
</Parameters>
<Docs>
<param name="src">To be added.</param>
<param name="listener">To be added.</param>
<summary>See <c>#decodeBitmap(Source, OnHeaderDecodedListener)</c>.</summary>
<returns>To be added.</returns>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/graphics/ImageDecoder#decodeBitmap(android.graphics.Source)" title="Reference documentation">Java documentation for <code>android.graphics.ImageDecoder.decodeBitmap(android.graphics.Source)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="DecodeDrawable">
<MemberSignature Language="C#" Value="public static Android.Graphics.Drawables.Drawable DecodeDrawable (Android.Graphics.ImageDecoder.Source src);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Android.Graphics.Drawables.Drawable DecodeDrawable(class Android.Graphics.ImageDecoder/Source src) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Graphics.ImageDecoder.DecodeDrawable(Android.Graphics.ImageDecoder.Source)" />
<MemberSignature Language="F#" Value="static member DecodeDrawable : Android.Graphics.ImageDecoder.Source -> Android.Graphics.Drawables.Drawable" Usage="Android.Graphics.ImageDecoder.DecodeDrawable src" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("decodeDrawable", "(Landroid/graphics/ImageDecoder$Source;)Landroid/graphics/drawable/Drawable;", "", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("decodeDrawable", "(Landroid/graphics/ImageDecoder$Source;)Landroid/graphics/drawable/Drawable;", "", ApiSince=28)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>