I need a library which generate .PNG from text on Windows 8 Metro. It must be compatible with x64, x86 and ARM processors. It should use Direct2D as the engine.
You will set up a solution with
1. C# demo application project.
2. C# Class Library project.
3. C++ runtime library project.
The C++ runtime library will wrap the necessary code to use Direct2D to draw the text onto an image.
The C# Class Library project provides a wrapper class (or wrapper classes) for the runtime library.
The C# demo application project is a Metro app with the following features.
1. User enter text drawing options:
1.1 User enters a text in a text box. It must support all languages, not limited to Roman languages.
1.2. User selects a font.
1.3. User selects font options (weight, italic etc)
1.4. User selects a font size.
2. User select rendering options
2.1 Simple mode.
2.1.1 In Simple mode, the user has the option to have a clear background, or solid color.
2.1.2 The text is rendered as single-line text onto an image. The return image has the minimum dimension to contain the text specified in #1.
2.2 Paragraph mode.
2.2.1 The user has the option to have a clear background, or solid color.
2.2.2 The user is given a max width.
2.2.3 The user has the option to specify text alignment (left, center, right).
2.2.4 The text is rendered as multi-line text onto an image. The image's width is the max width specified in 2.2.2. The height is just big enough to contain the whole text.
3.1 Single page UI.
3.2 The UI does not need to be fancy. It only needs to be enough to perform all the functionalities specified in 1 and 2.
Add more text requirement:
1.5. User selects text color.
1.6. user selects alpha value.
Changes in the project requirement:
To make things simple, you can use SharpDX (which is a C# wrapper for Direct2D), and it should be much easier.
There is no need for the C++ runtime library project. The C# Class Library project will reference SharpDX. It still needs to wrap all the required functionalities.