direct2d Questions
3
Could somebody provide an example of an efficient way to work with pixels using Direct2D?
For example, how can I swap all green pixels (RGB = 0x00FF00) with red pixels (RGB = 0xFF0000) on a render...
Odyssey asked 26/1, 2012 at 16:14
6
It annoys me that the resizing of windows in Windows is not as "smooth" as it I'd like it to be (this is the case with Windows programs in general, not just my own. Visual Studio is a good example)...
1
Solved
D2D1 is the namespace for Direct2D technology in Win32. However I don't understand the etymology of this name. The D2D part most likely refers to Direct2D, however the last 1 puzzle...
1
I am trying to move an application from GDI+ to Direct2D for performance reasons.
Perviously I was using StretchBlt() in HALFTONE mode which gives great, but slow results.
Now I am drawing in Dir...
4
While looking for alternatives to replace GDI, I was trying to test Delphi's 2010 TDirect2DCanvas performance in Windows 7.
I tested it by drawing a huge polyline using Direct2D and the result was...
F asked 29/10, 2010 at 20:0
2
Solved
The dark gray lines are supposed to be black and 1 pixel wide:
pRT->DrawLine(Point2F(100, 120), Point2F(300, 120), blackbrush, 1);
The light gray lines are supposed to be black and 0.5 pixe...
Swaraj asked 26/5, 2012 at 5:10
5
I'm working a lot with Visual Studio 2008, .NET C# 2.0-3.5 and Windows Forms and I have noticed, like many before me, that GDI+ is extremely slow in drawing Controls. Note that I do not deal with i...
Chalcography asked 17/9, 2010 at 12:2
2
Solved
I've created an image service in C# which takes a base layer image (JPG), layers one more more transparent PNG's (32 bit), and then outputs a final JPG image. I'm trying to squeeze every last milli...
2
Solved
My new application will feature a rich interface which should be resizable on-the-fly uses transparent icons/images etc. For this application I'm trying to decide on using the new Direct2D API agai...
2
My objective:
I want to get the height of an IDWriteTextFormat's font so I can calculate how many lines of text can fit in an IDWriteTextLayout of a certain height.
My problem:
Right now I'm u...
Evzone asked 8/4, 2011 at 2:52
3
Solved
Has anyone out there created a version of GDI32.dll that takes advantage of hardware acceleration available on the machine? gdiplus.dll?
Starting with Windows Vista, GDI is no longer hardware acce...
Darees asked 14/4, 2010 at 19:54
3
Solved
Main article there is a header file and a source file. After copying those two files and adding few headers:
#include <Windows.h>
#include <d2d1.h>
#pragma comment(lib, "d2d1"...
Stickseed asked 21/7, 2010 at 9:37
© 2022 - 2024 — McMap. All rights reserved.