<summary>
TextLayout calls this callback function to get the visible extents (in DIPs) of the inline object.
In the case of a simple bitmap, with no padding and no overhang, all the overhangs will
simply be zeroes.
</summary>
<param name="overhangs">Overshoot of visible extents (in DIPs) outside the object.</param>
<returns>
Standard HRESULT error code.
</returns>
<remarks>
The overhangs should be returned relative to the reported size of the object
(DWRITE_INLINE_OBJECT_METRICS::width/height), and should not be baseline
adjusted. If you have an image that is actually 100x100 DIPs, but you want it
slightly inset (perhaps it has a glow) by 20 DIPs on each side, you would
return a width/height of 60x60 and four overhangs of 20 DIPs.
</remarks>
<summary> TextLayout calls this callback function to get the visible extents (in DIPs) of the inline object. In the case of a simple bitmap, with no padding and no overhang, all the overhangs will simply be zeroes. </summary> <param name="overhangs">Overshoot of visible extents (in DIPs) outside the object.</param> <returns> Standard HRESULT error code. </returns> <remarks> The overhangs should be returned relative to the reported size of the object (DWRITE_INLINE_OBJECT_METRICS::width/height), and should not be baseline adjusted. If you have an image that is actually 100x100 DIPs, but you want it slightly inset (perhaps it has a glow) by 20 DIPs on each side, you would return a width/height of 60x60 and four overhangs of 20 DIPs. </remarks>