Why MAX_IMAGE_DIMENSION = 16384 ? #1917
Replies: 2 comments
-
It's the limit of Max Texture Dimension in DirectX: For larger size, only read the small region from the source file and load to Direct2D, it's complicated. |
Beta Was this translation helpful? Give feedback.
-
https://stackoverflow.com/questions/16337760/large-images-with-direct2d For example, Use ID2D1RenderTarget::CreateSharedBitmap to make a bitmap that can be used by different resources. Or, at the appropriate time, resize the image to a size smaller than 16384 |
Beta Was this translation helpful? Give feedback.
-
Why MAX_IMAGE_DIMENSION = 16384 ?
Are there any restrictions on image size for DitrctN ?
if i set MAX_IMAGE_DIMENSION = 65536 and open an image with a height of 20000 pixels, DXHelper.ToD2D1Bitmap report error
HResult=0x80004005
Message=Parameter error
Source=DirectNStandard
StackTrace:
在 DirectN.HRESULT.ThrowOnErrorExcept(IEnumerable
1 exceptedValues, Boolean throwOnError) 在 DirectN.HRESULT.ThrowOnError(Boolean throwOnError) 在 DirectN.ID2D1DeviceContextExtensions.CreateBitmapFromWicBitmap[T](ID2D1DeviceContext context, IWICBitmapSource source, Nullable
1 properties)在 DirectN.ID2D1DeviceContextExtensions.CreateBitmapFromWicBitmap(IComObject
1 context, IComObject
1 source, Nullable1 properties) 在 D2Phap.DXHelper.ToD2D1Bitmap(IComObject
1 dc, WicBitmapSource wicSrc, Nullable`1 bitmapProps)Does DirectN not support large images?
How to open a large image with UseHardwareAcceleration ?
Beta Was this translation helpful? Give feedback.
All reactions