minimal code to get a drawable surface

I asked another question about generating high quality graphics in a service on Windows Server and SharpDX looks like a reasonable possibility. However I am finding it difficult to find current how-to style documentation. I am specifically interested in the WARP device context.

My use-case is for generation of png format images, and steps of interest are initialisation, loading existing images, drawing graphics and text on them, a resizing / scaling, and saving to png format. I mention this as a large part of the potential use cases for SharpDX are game-related and focus on buffer chains and rendering to forms, which I do not need to do.

This is question 1 then - what is the minimal C# code required to create a drawable 2D surface using WARP in SharpDx in preparation for the above use case.

Other code I have found via Google is either game-focussed, not using WARP, or is simply too complex as it covers more basis.

链接地址: http://www.djcxy.com/p/50354.html

上一篇: 如何检测使用jQuery在键盘上按Enter键?

下一篇: 获得可绘制表面的最小代码