ID2D1RenderTarget::P opAxisAlignedClip 方法 (d2d1.h)

從轉譯目標移除最後一個軸對齊的剪輯。 呼叫這個方法之後,剪輯就不會再套用至後續的繪圖作業。

Syntax

void PopAxisAlignedClip();

傳回值

備註

PushAxisAlignedClip/PopAxisAlignedClip配對可能會在PushLayer PopLayer/ 配對內發生,但可能不會重迭。 例如,PushAxisAlignedClipPushLayer、PopLayerPopAxisAlignedClip序列有效,但PushAxisAlignedClip、PushLayer、PopAxisAlignedClipPopLayer序列則無效。

每次呼叫 PushAxisAlignedClip 時,都必須呼叫 PopAxisAlignedClip一次。

如需範例,請參閱 How to Clip with an Axis-Aligned Clip Rectangle

如果此方法失敗,此方法不會傳回錯誤碼。 若要判斷繪圖作業 (例如 PopAxisAlignedClip) 失敗,請檢查 ID2D1RenderTarget::EndDrawID2D1RenderTarget::Flush 方法傳回的結果。

規格需求

   
最低支援的用戶端 適用于 Windows Vista 的 Windows 7、Windows Vista SP2 和平臺更新 [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008 [傳統型應用程式 |UWP 應用程式]
目標平台 Windows
標頭 d2d1.h
程式庫 D2d1.lib
Dll D2d1.dll

另請參閱

ID2D1RenderTarget