No announcements
Found 66 threads
-
4 Votes
How can I capture the screen shot rendered by DirectX
GetPixelSize(); DX::ThrowIfFailed( m_d2dContext->CreateBitmap( pixelSize, nullptr, pixelSize.width * 4, ...Answered | 9 Replies | 8642 Views | Created by pointeryang - Monday, September 24, 2012 9:51 PM | Last reply by pointeryang - Monday, October 1, 2012 5:03 AM -
2 Votes
In Direct2d, How to realize what DirectDraw does using Blt with colorkey between off-screen surfaces
QueryInterface(__uuidof(ID2D1DeviceContext), reinterpret_cast<void**>(&pDeviceContext)); Creating ...Unanswered | 19 Replies | 1399 Views | Created by NKJayFang - Friday, September 7, 2018 3:21 AM | Last reply by NKJayFang - Tuesday, September 18, 2018 9:10 AM -
1 Votes
ID2D1Bitmap into IWICBitmap
Hi, an ID2D1Bitmap1 inherits from ID2D1Bitmap and can be mapped into system memory, the ID2D1DeviceContext::CreateBitmap function creates an ID2D1Bitmap1 that can be used for reading back to ...Answered | 3 Replies | 8535 Views | Created by WalterAlex - Tuesday, July 3, 2012 12:17 PM | Last reply by pragos - Saturday, July 28, 2012 4:07 AM -
0 Votes
How to judge the size of a bitmap that created by CreateBitmapFromDxgiSurface?
BeginDraw(drawingBounds, &dxgiSurface, &surfaceOffset); ComPtr<ID2D1DeviceContext> ... -
0 Votes
How to paint to a bitmap using DirectX
void PaintTestBitmap(GRectF& rect) { HRESULT ...Answered | 3 Replies | 6133 Views | Created by John Gaby - Saturday, July 14, 2012 7:11 PM | Last reply by RobertHF - Wednesday, July 18, 2012 5:45 PM -
0 Votes
Applying D2D1GaussianBlur to a WICBitmap through CreateSharedBitmap
QueryInterface(&deviceContext); // lock the WICBitmap so we can write to it IWICBitmapLock* pLock; WICRect wRec = { 0.0, 0.0, 1920, 1080 }; pWICBitmap->Lock(&wRec, ...Unanswered | 1 Replies | 1128 Views | Created by PeterDMusial - Thursday, January 26, 2017 10:01 PM | Last reply by - Friday, March 24, 2017 10:17 PM -
0 Votes
[MFC] [Direct2d/Direct3d] Mixing Direct2D and Direct3D in an MFC environment: CreateDxgiSurfaceRenderTarget - returns E_INVALIDARGS
Instead of using the ID2D1XXXRenderTarget, you use the ID2D1Device and ID2D1DeviceContext interfaces.Unanswered | 7 Replies | 1872 Views | Created by Trec Apps - Sunday, July 16, 2017 7:33 PM | Last reply by Hart Wang - Monday, July 24, 2017 8:38 AM -
0 Votes
What we can do with Memory DC in Store App?
ID2D1DeviceContext::CreateBitmapFromWicBitmap http://msdn.microsoft.com/en-us/library/windows/desktop/hh847971(v=vs.85).aspx Best ...Unanswered | 2 Replies | 1605 Views | Created by tkawata5 - Friday, November 30, 2012 4:40 PM | Last reply by tkawata5 - Friday, December 7, 2012 1:19 PM -
1 Votes
Direct2D performance for line drawings
I'm managing to render about 2 million lines a second by passing the lines to an ID2D1PathGeometry, and calling DrawGeometry on an ID2D1DeviceContext.Answered | 5 Replies | 5043 Views | Created by D.G.Thomas - Friday, August 24, 2012 2:56 PM | Last reply by D.G.Thomas - Wednesday, August 29, 2012 8:09 AM -
0 Votes
SimpleTextRenderer syntax error
. // // To conserve memory, it is preferable to store heavy-weight resources in the // PageRenderer, and take only a reference to those resources inside // PageRendererContext. ref ...Answered | 19 Replies | 1905 Views | Created by nigelwright7557 - Monday, August 26, 2013 4:03 PM | Last reply by nigelwright7557 - Friday, August 30, 2013 2:04 AM -
0 Votes
Store ID2D1Effect output in ID2D1Bitmap/Image to draw it at a later time?
My next try was to create a Bitmap (ID2D1DeviceContext::CreateBitmap) with D2D1_BITMAP_OPTIONS_TARGET flag set and draw the effects output to this ...Answered | 1 Replies | 948 Views | Created by EveryNameIsTakenHere - Wednesday, March 19, 2014 6:32 PM | Last reply by Anna Cc - Sunday, March 23, 2014 12:01 PM -
0 Votes
DX11, Direct2D, and OMSetRenderTargets issue
I can succesfully render Direct2D text in my DX11 engine, by creating a ID2D1Factory1, IDWriteFactory, IDXGIDevice1, ID2D1Device1, and ID2D1DeviceContext, as well as ID2D1Bitmap1 ...Answered | 2 Replies | 4143 Views | Created by O. Thomasen - Saturday, March 9, 2013 2:48 PM | Last reply by Jesse Jiang - Monday, March 11, 2013 3:01 AM -
1 Votes
DirectWrite in XAML-DirectX interop
reinterpret_cast<IInspectable*>(surfaceImageSource); sisInspectable->QueryInterface(__uuidof(ISurfaceImageSourceNative), (void ...Answered | 4 Replies | 5878 Views | Created by MarkVincze - Friday, March 9, 2012 4:36 PM | Last reply by Jim Chapman Turnipsoft - Sunday, October 14, 2012 9:32 AM -
1 Votes
[UWP] How to create a class derived from ImageSource?
But it would require to create and maintain a number of DirectX objects, such as ID3D11Device, IDXGIDevice, ID2D1Factory, ID2D1Device, ID2D1DeviceContext, ID2D1Bitmap.Answered | 3 Replies | 855 Views | Created by Dan5783 - Sunday, November 6, 2016 9:11 PM | Last reply by Dan5783 - Thursday, November 10, 2016 6:00 PM -
0 Votes
Direct2D DrawText, position text's upper left-hand corner
One easy way to accomplish this is by calling ID2D1DeviceContext::SetTransform() with a transform matrix based on the offset returned by BeginDraw.Answered | 2 Replies | 3544 Views | Created by MarkVincze - Friday, March 23, 2012 10:26 AM | Last reply by MarkVincze - Friday, March 23, 2012 9:44 PM -
0 Votes
E_INVALIDARG - CreateBitmapFromWicBitmap
ID2D1Bitmap1* pNewBitmap = NULL; D2D1_BITMAP_PROPERTIES1 properties = { ...Unanswered | 3 Replies | 4372 Views | Created by t-n-x - Monday, February 6, 2012 2:06 PM | Last reply by Rob Caplan [MSFT] - Wednesday, February 8, 2012 3:09 AM -
0 Votes
Direct2D: problem on loading (alpha-channel) images from files
This does require you create the bitmap so that it can be read by the CPU, and you must do this via ID2D1DeviceContext.Unanswered | 9 Replies | 876 Views | Created by GHEORGHE_926 - Thursday, April 30, 2020 6:27 PM | Last reply by Darran Rowe - Friday, May 8, 2020 2:50 PM -
0 Votes
Potential memory leak when releasing a Gradient Brush in direct2D ???
CreateBitmap(D2D1::SizeU(100, 100), nullptr, 0, D2D1::BitmapProperties1(D2D1_BITMAP_OPTIONS_TARGET, D2D1::PixelFormat(DXGI_FORMAT_B8G8R8A8_UNORM, D2D1_ALPHA_MODE_PREMULTIPLIED)), ...Answered | 16 Replies | 1835 Views | Created by GRM1X2 - Friday, April 19, 2019 10:50 AM | Last reply by GRM1X2 - Saturday, April 20, 2019 9:50 PM -
3 Votes
VS 2012 - DirectX objects used in 'sub'classes
Hi, i've tried it, but it's not working :-( ref class DirectXBase ...Answered | 4 Replies | 3808 Views | Created by Johannes Spreemann - Thursday, June 7, 2012 7:02 PM | Last reply by Johannes Spreemann - Friday, June 8, 2012 4:27 PM -
0 Votes
How to use OnDrawIconicThumbnailOrLivePreview with Direct2D 1.1 (CreateSwapChainForHwnd)
That is just it, I do not want to have a set of two drawing "methods", one being based on ID2D1DCRenderTarget and the other based on ID2D1DeviceContext.Unanswered | 2 Replies | 1095 Views | Created by GSP_T - Wednesday, June 3, 2015 7:27 PM | Last reply by GSP_T - Thursday, June 4, 2015 11:12 AM
No announcements