Win2d 中的 CanvasBitmap 和 CanvasVirtualBitmap 有什么区别?
what is the difference between CanvasBitmap and CanvasVirtualBitmap in Win2d?
Win2d中的CanvasBitmap和CanvasVirtualBitmap有什么区别?哪个使用效率高?它们有什么不同?
根据document中的描述:
CanvasVirtualBitmap
can be used to load and draw images that are larger than the maximum size of bitmaps supported on this device. CanvasDevice.MaximumBitmapSizeInPixels
can be used to determine this size. Generally, you can assume that this value is at least 4096. Any attempt to load a CanvasBitmap
larger than the maximum bitmap size will fail. CanvasVirtualBitmap
allows you to reliably load any sized image.
这解释了 CanvasVirtualBitmap
和 CanvasBitmap
之间的区别。
CanvasBitmap
用于加载一定大小的位图,当前设备可以加载。但对于不确定大小的图片,可能超出当前设备渲染范围,可以使用CanvasVirtualBitmap
.
谢谢。
Win2d中的CanvasBitmap和CanvasVirtualBitmap有什么区别?哪个使用效率高?它们有什么不同?
根据document中的描述:
CanvasVirtualBitmap
can be used to load and draw images that are larger than the maximum size of bitmaps supported on this device.CanvasDevice.MaximumBitmapSizeInPixels
can be used to determine this size. Generally, you can assume that this value is at least 4096. Any attempt to load aCanvasBitmap
larger than the maximum bitmap size will fail.CanvasVirtualBitmap
allows you to reliably load any sized image.
这解释了 CanvasVirtualBitmap
和 CanvasBitmap
之间的区别。
CanvasBitmap
用于加载一定大小的位图,当前设备可以加载。但对于不确定大小的图片,可能超出当前设备渲染范围,可以使用CanvasVirtualBitmap
.
谢谢。