No announcements
Found 66 threads
-
0 Votes
ID2D1DeviceContext::SetTargetSurface
but it has not defined "ID2D1DeviceContext::SetTargetSurface" (my system is on E:) It's not a big problem, I can use ...Answered | 4 Replies | 3538 Views | Created by Raptor K - Wednesday, July 11, 2012 5:36 AM | Last reply by Raptor K - Friday, July 13, 2012 12:35 PM -
0 Votes
Can ID2D1DeviceContext interoperate with GDI?
I create a bitmap using ID2D1DeviceContext::CreateBitmap, with bitmap options being set D2D1_BITMAP_OPTIONS_TARGET and D2D1_BITMAP_OPTIONS_GDI_COMPATIBLE. -
0 Votes
Get HWND from ID2D1DeviceContext object (Direct2D)
Currrently, I have the object of interface ID2D1DeviceContext. -
0 Votes
How to create a Bitmap from ID2D1DeviceContext
Hi, I have a ID2D1DeviceContext and I draw a bitmap(data read from a file having IRandomAccessStream) and line by using this context to a SwapChainBackgroundPanel.Answered | 3 Replies | 4147 Views | Created by _Sujith - Friday, November 16, 2012 5:06 AM | Last reply by Jesse Jiang - Monday, November 19, 2012 8:30 AM -
0 Votes
Throw OutOfMemory when call ID2D1DeviceContext::CreateBitmapFromWicBitmap
when I create a bitmap from a image that it's size is 2429*609 in arm machine using ID2D1DeviceContext::CreateBitmapFromWicBitmap, it throw the OutOfMemory exception. ...Unanswered | 2 Replies | 1837 Views | Created by Holmes2G - Thursday, October 18, 2012 8:16 AM | Last reply by Holmes2G - Monday, October 22, 2012 2:21 AM -
2 Votes
How to create ID2D1DeviceContext for IWICBitmap?
Get(), &props, &m_target); But if I want to apply ID2D1Effect to this bitmap, I can do that only if I have ID2D1DeviceContext.Answered | 2 Replies | 3926 Views | Created by pragos - Friday, July 27, 2012 5:42 AM | Last reply by pragos - Friday, July 27, 2012 4:25 PM -
0 Votes
Direct2d retrieve data from ID2D1Bitmap?
The ID2D1DeviceContext::CreateBitmap function creates an ID2D1Bitmap1 that can be used for reading back to the CPU.Answered | 2 Replies | 1666 Views | Created by garima jagrat - Monday, November 16, 2015 6:16 AM | Last reply by fangfang wu - Thursday, November 19, 2015 2:52 AM -
0 Votes
C++ Metro direct2d printing.
CreatePrintControl( m_dwriteFactory, m_d2dContext, printControlProperties, &d2dPrintControl ); This doesn't work for some ...Answered | 1 Replies | 1990 Views | Created by nigelwright7557 - Wednesday, September 19, 2012 2:01 AM | Last reply by Jesse Jiang - Wednesday, September 19, 2012 10:54 AM -
1 Votes
Size limit of pictures drawn with DirectX (OutOfMemoryException when creating bitmap)
It works on desktops, but when testing the app on ARM tablets, the ID2D1DeviceContext::CreateBitmapFromWicBitmap function returns OutOfMemory error when we pass in large images.Answered | 5 Replies | 2583 Views | Created by MarkVincze - Thursday, September 20, 2012 10:21 AM | Last reply by MarkVincze - Wednesday, October 24, 2012 7:38 AM -
0 Votes
Drawing pixels
DrawRectangle( D2D1::RectF(100.0, 100.0, 200.0, 200.0), brush.Get(), 4.0); The context variable is of type ID2D1DeviceContext and the brush is of type ...Answered | 7 Replies | 8228 Views | Created by ata6502 - Friday, November 1, 2013 3:10 AM | Last reply by nigelwright7557 - Saturday, November 2, 2013 2:16 AM -
1 Votes
How can I save image captured from DirectX context without using FileSavePicker?
GetPixelSize(); DX::ThrowIfFailed( m_d2dContext->CreateBitmap( pixelSize, nullptr, pixelSize.width * 4, ...Answered | 3 Replies | 4040 Views | Created by pointeryang - Thursday, September 27, 2012 7:27 PM | Last reply by Chuck Walbourn - MSFT - Monday, October 1, 2012 9:46 PM -
0 Votes
Platform::ComException on ID2D1DeviceContext::CreateEffect method
I try to implement custom effect on direct2d, my Effects Register method works fine, but on createeffect method I have returned value "HRESULT_FROM_WIN32(ERROR_NOT_FOUND): Element not ...Unanswered | 1 Replies | 900 Views | Created by Lus13 - Thursday, October 30, 2014 1:26 PM | Last reply by Matt Small - Friday, October 31, 2014 12:39 PM -
0 Votes
It is possible to convert WriteableBitmap to ID2D1Bitmap
Hi Matt, Details: I have an image (WriteableBitmap) and want to be able to render this image using ID2D1DeviceContext::DrawBitmap(); which means i need ...Answered | 9 Replies | 998 Views | Created by Jano85 - Monday, August 4, 2014 7:44 AM | Last reply by Oliver Ulm - Thursday, August 14, 2014 6:53 AM -
0 Votes
Can ID2D1HwndRenderTarget use Direct2D effects ?
It seems that Direct2D effects is only available in ID2D1DeviceContext, but there is a need for me to use effects in HwndRenderTarget. -
1 Votes
FillRectangle() and Clear() for Direct2D
Clear() and then we call ID2D1DeviceContext->FillRectangle() fifty times.Answered | 1 Replies | 3827 Views | Created by willjing - Tuesday, March 5, 2013 2:37 PM | Last reply by Rob Caplan [MSFT] - Wednesday, March 6, 2013 12:23 AM -
0 Votes
CreateBitmapFromDxgiSurface()
I managed to get ID2D1RenderTarget::CreateSharedBitmap() to work by retrieving the DXGI_FORMAT from IDXGISurface and passing it into the bitmapProperties argument as ...Unanswered | 2 Replies | 4845 Views | Created by RobertHF - Thursday, July 19, 2012 11:51 AM | Last reply by Raptor K - Wednesday, July 25, 2012 3:02 AM -
0 Votes
Is it possible to marshal DrawingContext to native code
"is it right that DrawingContext has underlying Direct2D ID2D1DeviceContext and ID2D1RenderTarget?Answered | 1 Replies | 527 Views | Created by Dmitriano1 - Tuesday, June 17, 2014 9:53 AM | Last reply by Mike Danes - Tuesday, June 17, 2014 11:47 AM -
0 Votes
Direct2D copy surface content scaled to another surface
The thing is, the Direct2D render target/device context object has a draw bitmap member functions that scale the bitmap to the destination rectangle.Unanswered | 1 Replies | 561 Views | Created by Seneca LA - Sunday, January 19, 2020 4:16 PM | Last reply by Darran Rowe - Sunday, January 19, 2020 11:29 PM -
0 Votes
How to draw ID2D1Image with given opacity value?
ID2D1DeviceContext::DrawImage function does not accept any opacity value while ID2D1DeviceContext::DrawBitmap does.Answered | 1 Replies | 2250 Views | Created by John Rick - Tuesday, June 18, 2013 6:50 AM | Last reply by t-n-x - Tuesday, June 18, 2013 11:19 AM -
0 Votes
Direct2D - Using Effects on Windows 7
For confirmation of this, look at the documentation for the ID2D1DeviceContext interface.Answered | 2 Replies | 1622 Views | Created by Cubinator73 - Saturday, November 1, 2014 5:51 PM | Last reply by Cubinator73 - Sunday, November 2, 2014 10:36 AM - Items 1 to 20 of 66 Next ›
No announcements