direct2d Questions

4

I am trying to create a Media Foundation Transform that draws text on video using D2D and D3D11. I am trying to construct a D2D RenderTarget on top of D3D11 resources, but unfortunately, most means...
Circumbendibus asked 2/8, 2012 at 4:55

4

Solved

I'm programming a simulation at the moment, and I want to port my application from using GDI to using Direct2D. But my Direct2D code is much slower than my GDI code. I render a lot of ellipses on ...
Mosesmosey asked 8/11, 2012 at 3:28

1

Solved

This is a question to understand the principles of GPU accelerated rendering of 2d vector graphics. With Skia or Direct2D, you can draw e.g. rounded rectangles, Bezier curves, polygons, and also ha...
Sharkskin asked 25/9, 2021 at 20:10

3

Solved

Target-independent rasterization (TIR) is a new hardware feature in DirectX 11.1, which Microsoft used to improve Direct2D in Windows 8. AMD claimed that TIR improved performance in 2D vector graph...
Sauceda asked 9/8, 2014 at 14:46

1

Solved

I am investigating replacing GDI with Direct2D in some parts of my applications. To this end, I read the official Embarcadero documentation and created this minimal Direct2D application: unit Unit1...
Linneman asked 3/10, 2020 at 9:51

1

Good morning, I have been teaching myself a bit of Direct2D programming in C#, utilizing native wrappers that are available (currently using d2dSharp, but have also tried SharpDX). I'm running int...
Janinajanine asked 21/3, 2019 at 17:7

2

I'm developing a Dotnet 4.0 application on Win7 that needs to perform mapping. As a mapping application it outputs crap loads of high resolution antialiased polygons. It currently supports two type...
Smyrna asked 28/11, 2012 at 10:48

3

Solved

So, I have a Direct2D Matrix3x2F that I use to store transformations on geometries. I want these transformations to be user-editable, and I don't want the user to have to edit a matrix directly. Is...
Lael asked 18/7, 2017 at 6:39

1

I'm currently updating a Windows GDI application to use Direct2D rendering and I need to support "transparent" bitmaps via color-keying for backwards compatibility. Right now I'm working with a HW...
Urogenital asked 30/1, 2013 at 18:22

1

I would like to make a Per-Monitor DPI-Aware Direct2D application. I have extended Microsoft's "First Direct2D Program" example to handle WM_DPICHANGED as explained in Kenny Kerr's MSDN article. Th...
Winther asked 3/7, 2016 at 16:27

2

Solved

While researching which COM apartment threading models are supported by Direct2D, I discovered that despite appearances and the fact that one can use the API from .NET using COM interoperability, D...
Arrivederci asked 3/7, 2016 at 20:34

2

Solved

I need to draw a list of shapes and I am using Direct2D. I get the list of shapes from a file. The list is sorted and the order of the elements inside the file represents the order these shapes wil...
Photolithography asked 6/5, 2016 at 14:48

2

Solved

I am trying to create a simple transparent window where I can draw with Direct2D. So far what I have done: Created window Set style to WS_EX_LAYERED Set alpha color key as #FFF Draw using Window...
Abode asked 16/9, 2013 at 20:41

1

This question has to do with how browsers render an entire page as tiled images (and is not about rendering images within pages.) I'm most interested in the memory costs. It is my understanding th...
Daft asked 20/12, 2014 at 20:11

3

Solved

I'm trying to draw semi-transparent rectangles on an invisible HWND. However, clearing the window with ID2D1HwndRenderTarget::Clear just makes the entire window black, so when I draw rectangles on ...
Pulvinus asked 8/4, 2010 at 20:37

2

Solved

I'm writing a ebook reader app for Windows Store. I'm using Direct2D + DXGI swap chains to render book pages on screen. My book content sometimes is quite complex (geometry, bitmaps, masks, etc),...
Fatimafatimah asked 15/10, 2015 at 8:32

6

I'm trying to do vertical synced renders so that exactly one render is done per vertical sync, without skipping or repeating any frames. I would need this to work under Windows 7 and (in the future...
Baalbek asked 8/5, 2012 at 13:38

3

Solved

I have the data of a spline curve Degree Knots Control points Fit points And I need to draw this curve by using Direct2D. At the moment I am using the ID2D1GeometrySink interface to draw geomet...
Manizales asked 7/7, 2015 at 13:18

4

Solved

I'm developing a drawing application in Visual C++ by means of Direct2D. I have a demo application where: // create the ID2D1Factory D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, &m_pDi...
Lyricist asked 10/1, 2015 at 18:15

1

I'm trying out the Direct2D RenderTarget property of C++ Builder's TDirect2DCanvas to benchmark bitmap manipulation using the GPU. This is most impressive compared to GDI. However, I cannot figure ...
Griffen asked 13/3, 2014 at 14:59

1

I have a Direct2D render target created with ID2D1Factory::CreateDxgiSurfaceRenderTarget. When I receive a WM_SIZE message, I try to resize the corresponding swap chain by calling IDXGISwapChain::R...
Sakti asked 8/5, 2015 at 10:28

4

Solved

I'm working on a UI library powered by D2D, DWrite and Wic for (SDK API) Native C++ Desktop Applications (as in no XAML, no WinRT, just old school C++). I'm all set to write a windowless UI to gi...
Appanage asked 28/11, 2013 at 16:51

2

Solved

I am trying to register a DirectWrite (Windows 7, Windows 8) API based font file loader, and recreate in Delphi, the CustomFont demo from the Windows 7 SDK that shows how to use DirectWrite APIs wi...
Stinger asked 22/8, 2014 at 13:36

0

I already have implemented a Direct2D application for windows desktop application using C++, where I show the graphical results (with points, lines, and ellipses) during the simulation. I keep a bu...
Viyella asked 8/8, 2014 at 9:14

2

Solved

The setup Consider the given scratch program that uses SharpDX, a managed wrapper for Direct* libraries, to render a bitmap and save it as a PNG: namespace ConsoleApplication5 { using System; u...
Empurple asked 5/2, 2012 at 18:5

© 2022 - 2024 — McMap. All rights reserved.