Questions tagged [sharpdx]

SharpDX is an open-source project delivering the full DirectX API under the .Net platform, allowing the development of applications with high performance 2D and 3D graphics rendering as well as real-time sound.

SharpDX is an open-source project delivering the full DirectX API under the .Net platform, allowing the development of applications with high performance 2D and 3D graphics rendering as well as real-time sound.

For more information, see http://sharpdx.org/

656 questions
0
votes
1 answer

How to print the content rendered to SurfaceImageSource?

I am using SharpDx to render some shapes in the Image control in WinRt. How can I print the content rendered to a printer? private void RenderGraphics() { KSurfaceImageSourceManager _pKSurfaceImageSourceManager = new…
suresh
  • 177
  • 2
  • 14
0
votes
1 answer

Performing World <--> Device transforms in Direct2D

In GDI+, the Graphics object has a TransformPoints function which allows you to specify coordinate transforms for either device to world or world to device. In SharpDX I can take device (independent) co-ordinates and get them translated to my world…
Paul Westcott
  • 901
  • 1
  • 10
  • 19
0
votes
1 answer

Access Violation at SwapChain.Present

I have a very annoying problem at the following lines of code: try{ mSwapChain.Present(0, PresentFlags.None); //AccessViolationException, caught by debugger }catch(Exception Ex){ throw Ex; //Debugstop here, but not…
lunatix
  • 817
  • 10
  • 25
0
votes
1 answer

Generate Image as byte[] in WinRT with SharpDX

I'm trying to generate a simple image and display it in WinRT/XAML. For that I want the byte[] of an image drawn with SharpDX. My Approach so far seems fine but the resulting buffer is empty. I tried CopyPixels as well but it also only produced…
Sven Hecht
  • 1,337
  • 1
  • 16
  • 23
0
votes
0 answers

How to apply video processing on the GPU

I have a issue in programming for the graphics Card. I write a shader for Image processing (I use DirectX 11 in combination with SharpDX), but the Transfer from the CPU to the GPU is really slow (sometime about 0.5 seconds), but I think there should…
Simon Rühle
  • 229
  • 3
  • 12
0
votes
1 answer

Getting a SharpDX XAudio2 custom XAPO working in Windows 8 app

I'm using SharpDX and XAudio2 in a Windows Store app. I'm trying to create a custom XAPO and I can't even get started. OnNavigatedTo method for the app: protected override void OnNavigatedTo(NavigationEventArgs e) { XAudio2 engine = new…
George Powell
  • 9,141
  • 8
  • 35
  • 43
0
votes
1 answer

Pass color name as string in SharpDX.Color

i am getting a color name as string (like "Black"). have to convert that color name as SharpDX.Color for my Metro app. now trying in following ways, 1)SharpDX.Color.FromRgba(int or uint value of color) 2)SharpDX.Color.FromArgb(int or uint value…
Maniarasu
  • 362
  • 5
  • 15
0
votes
0 answers

Shader has strange input values

my current issue is the following: I try to create a SpriteBatch with integrated Primtive-Rendering (Sprite and PrimtiveBatch in one). Currently Visual Studio 11's Debugger shows that there is a line rendered. The IA-Stage is correct, so the…
SharpShade
  • 1,761
  • 2
  • 32
  • 45
0
votes
1 answer

Creating Bitmap Image or Memory stream from xaml control using Sharpdx library(WinRT)

Is it possible to create a Bitmap image or memory stream of xaml control say(gird, canvas) from Sharpdx. I need to create an image from one of my window for implementing Secondary tile Pin To start functionality.
StezPet
  • 2,430
  • 2
  • 27
  • 49
0
votes
1 answer

Loop wav file seamleassly in the background on windows 8

I have managed to get seamsless looping of wav files using the SharpDX library. But this does not seem to work while the app is minimised (in the background). Using the metro players I do not get a seamless loop this is why I use XAudio2 in the…
reachify
  • 3,657
  • 2
  • 19
  • 22
0
votes
1 answer

Running SharpDX audio samples in Windows 8 Release Preview crashes

I downloaded latest SharpDX v2.2 and built the samples in the SharpDXSamples.sln When I attempt to run an example that uses XAudio2, the sample crashes with the following error Here's the stack trace: at SharpDX.Result.CheckError() at…
Jim
  • 4,910
  • 4
  • 32
  • 50
-1
votes
1 answer

How to convert project made with Helixtoolkit to SharpDX?

There is a 3D simulation I made with helixtoolkit.wpf, but it is not effective at all in terms of performance. How can I adapt this project to SharpDX? I could hardly find any information about it on the internet. Is there a resource or shortcut you…
-1
votes
1 answer

How to copy an image from SharpDX/Direct2D to .NET Bitmap

I develop a .NET WinForms application and need to scale a lot of big images and display them as small icons on the form. I have problem with performance especially on specific machines. Thus my goal now is to use SharpDX to scale these image using…
Drreamer
  • 332
  • 1
  • 10
-1
votes
1 answer

How do I implement a cutting plane functionality using HelixToolkit.Wpf.Sharpdx?

I can't find a working example of a cutting plane implementation for HelixToolkit.Wpf.SharpDX. I hope to achieve something simpler than the HelixToolkit.Wpf cutting plane which can be invoqued by shift+clic anywhere on the displayed model. I'll be…
-1
votes
1 answer

How to get a screenshot from the background window DirectX

I was looking for examples of how to make a screenshot of an inactive window, but I did not find it. I want to take a screenshot of the game that works in the window, and not in full screen mode. Which can be blocked by other windows. I found some…
1 2 3
43
44