Add DirectWrite to existing GDI Application

已完成 已发布的 Apr 7, 2014 货到付款
已完成 货到付款

I need to be able to use DirectX to render text to an existing GDI based application.

I want a class that encapsulates this functionality and provides the original GDI interface to render text to a device context.

INPUT

a) Populated LOGFONT structure

b) CDC MemoryDC

c) Foreground Color Background Color

OUTPUT

Text rendered to the MemoryDC using DirectWrite

Here are two key technical resources

[url removed, login to view](v=[url removed, login to view]).aspx

[url removed, login to view](v=[url removed, login to view]).aspx

The interface for actually outputting the text should be a member function of the new class:
BOOL TextOut(HDC hdc, int nXStart, int nYStart, LPCTSTR lpString,i nt cchString );

Clarification:
I want to exactly duplicate the GDI interface for rasterizing Text to a memory device context.
This means that we create the Font using no more than a populated LOGFONT structure.

Microsoft has already provided for this with g_pGdiInterop->CreateFontFromLOGFONT(&lf, &pFont);
(see the link below)
http://msdn.microsoft.com/en-us/library/windows/desktop/dd742734(v=vs.85).aspx

I also want to output text to this memory device context using a member function that his named TextOut() which is the standard GDI function for text output, it will also take the same parameters as the standard TextOut() function.

The above two functions are to be the member functions of the public interface of the class.

I am only asking for a class the exposes two member functions:
1) CreateFont(LOGFONT& logfont, UINT32 ForeGroundColor, UINT32 BackGroundColor);
2) BOOL TextOut(HDC hdc, int nXStart, int nYStart, LPCTSTR lpString,int cchString );

This class must use DirectWrite for its glyph rendering.

The font must be constructed using every value in the LOGFONT parameter.
(I am estimating the Microsoft already implemented most of this).
This is an example function that creates DirectX font from a LOGFONT structure:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd941783(v=vs.85).aspx

C++编程 视窗桌面

项目ID: #5773541

关于项目

5个方案 远程项目 活跃的Apr 13, 2014

授予:

KingOfPhoenix

Hi, Friend. I have enough experience in C++ programming. I also have deep understanding about DirectX. I think I can help you perfectly & asap. Please tell me your details. Thanks.

$257 USD 在3天内
(16条评论)
5.5

有5名威客正在参与此工作的竞标,均价$321/小时

BenjaminFree123

HI. I have specialized in the c++/DirectX programming. I can give u a good result. Thanks.

$315 USD 在3天内
(5条评论)
4.5
andriy3s

A proposal has not yet been provided

$1000 USD 在10天内
(18条评论)
3.9
denisplakhov

Hi, I have a programming experience over 10 year (Visual Studio, C++ Builder, Delphi). I will be glad to help You with this assignment. Regards, Denis.

$160 USD 在4天内
(9条评论)
3.8
RodionKarimov

Hello, I have experience of creation of game engines with DirectX 11 rendering system and can create DirectWrite interoperability with GDI.

$222 USD 在8天内
(3条评论)
3.6
lokatoyo

You can use the GDI itself to render fonts directly, as even the DirectWrite relies on the GDI to perform this operation, but no problem, I will make it using DirecWrite only if you need it to be done so.

$300 USD 在2天内
(2条评论)
3.0
mathumathiad

Hi, I have good experience in font rendering as I have done this for DVB TV - PC emulator. It is done for the OSD menus and messages with directdraw on Video with alpha blending. Handled all kind of font flickeri 更多

$155 USD 在10天内
(0条评论)
1.1
CPUMirror

Hi, I like GDI, GDI+ and DirectX, and I am ready for your project Best regards

$66 USD 在3天内
(0条评论)
0.0