473,720 Members | 2,871 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DirectX: Do I need this?

I am building a .net app that does some simple image tasks (Tiff
files): viewing Tiff, viewing thumbnails from multipage tiff,
rotation, page (frame) deletion, etc.

The problem is that it is so frustratingly slow. Creating and viewing
thumbnails for a 50-page tiff (scan of text document) takes about 40
seconds. Commercial image viewers do the same thing in a split second.

I read on bobpowell.net that for fast GDI+, you need DirectX 9.0. I
don't know anything about DirectX. Before I spend days/months
tinkering with it, i'd like to know if DirectX is the "ticket" to a
speedy graphics application. By using DirectX, could my application
potentially be lightening fast for doing the tasks i mentioned above?

Also, is DirectX an alternative to GDI+? Or do they work together?

Thanks for your help!

John

Nov 21 '05 #1
3 1472
Hi,

Directx is an low level api for creating games and multimedia
applications. I dont think you will find much help from directx. Two
suggestion for speeding up program. Create the tumbnail for the tiff page
in the background so the program doesnt appear locked up. Second come up
with a way to store the thumnails. Only create thumbnails for files you
dont have any for or have changed.

http://msdn.microsoft.com/msdnmag/is...g/default.aspx

http://msdn.microsoft.com/msdnmag/is...asicInstincts/

Ken
-----------------------
"johnb41" <or****@informa tik.com> wrote in message
news:11******** *************@g 14g2000cwa.goog legroups.com...
I am building a .net app that does some simple image tasks (Tiff
files): viewing Tiff, viewing thumbnails from multipage tiff,
rotation, page (frame) deletion, etc.

The problem is that it is so frustratingly slow. Creating and viewing
thumbnails for a 50-page tiff (scan of text document) takes about 40
seconds. Commercial image viewers do the same thing in a split second.

I read on bobpowell.net that for fast GDI+, you need DirectX 9.0. I
don't know anything about DirectX. Before I spend days/months
tinkering with it, i'd like to know if DirectX is the "ticket" to a
speedy graphics application. By using DirectX, could my application
potentially be lightening fast for doing the tasks i mentioned above?

Also, is DirectX an alternative to GDI+? Or do they work together?

Thanks for your help!

John
Nov 21 '05 #2
Ken Tucker [MVP] wrote:
Directx is an low level api for creating games and multimedia
applications. I dont think you will find much help from directx.


Hmm... Not that I'm able to offer any help to the OP, but I do think DX
could potentially be useful.

It does have some restrictions and limitations, but it would mean that a
thumbnail could be created by getting the graphics hardware to do the
resizing. This could potentially be many times faster than a software
solution.

--

(O)enone
Nov 21 '05 #3
I see 2 replies to my message (thanks to DevelopersDex emailing me a
notification). How come nothing is showing up in Google Groups?
Hmmm...

Anyway, thanks Ken Tucker and Oenone for your replies. I'll definitely
look into "threading" to fool the user to thinking my app is faster!

John

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2931
by: Michael Mayer | last post by:
First of all, sorry for the cross-post. Seems like there should be a managed directx newsgroup. I'm trying to open the following sample application that comes with the DirectX SDK. C:\DXSDK\Samples\C#\AudioVideo\Bin\csAVPlayer.exe It will not play some of the samples shipped with the SDK. It either completey hangs the application (and I have to use Windows Task Manager to kill it) or sometimes it displays an error message. Below...
1
1425
by: dave | last post by:
I instaled the DirectX on my XP machine, but cannot resolve : using Microsoft.DirectX; What should I do to get it in the visual studio? Thanks
6
7139
by: ammd | last post by:
Hi, I installed Microsoft DirectX 9.0 SDK (Summer 2004) but when I create a project and try to add the necessary references I can't find them. Does anybody know where to look for them? BTW, I have VS 2002. Don't know if there's an incompatibility issue. Thanks.
4
2184
by: Zoury | last post by:
look up your timezome settings... you have future posted.
2
5255
by: Diego_Atos | last post by:
I want to create objects using directX. I downloaded SDK version of DirectX. I've installed it. Which is the right dll to add to references? I can't find it. thanks -- -Diego (Atos)-
0
1669
by: Johann Blake | last post by:
Hi, I want to capture a signal from the sound card (via microphone or line input) using the DirectX.Sound.CaptureBuffer class. One of the properties that can be setup prior to capturing is specifying that the buffer is continous. This means that once the buffer is filled with data, it wraps around and continues filling the buffer. Where I see a potential problem has to do with the sampling speed of the sound card against the speed of...
14
2654
by: Jessica Weiner | last post by:
I am writing an application in C# which need to plot graphs and simple shapes (polygons, circles, squares etc). Which library is better for this purpose and why? Thanks.
3
1386
by: Abdul Azeez(BLR) | last post by:
Hi, I need to use DirectX in my application for drawing the network diagram. May I know the procedure to draw a Graph( Rectangular boxes connected with straight lines) using DirectX. Could you please throw some light on DirectX as I have very little knowledge about it. My main intension is to draw rectangular boxes which are connected
2
2082
by: Peter Webb | last post by:
Sorry, stupid newbie question. I have VS2008, and I downloaded and installed the DirectX SDK. I want to access the DirectX classes from C#, but I can't see how to make C# aware of them. using Microsoft.DirectX.Direct3DX; says the namespace doesn't exist.
0
8727
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9365
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9210
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9126
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5972
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4748
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3186
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2567
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2125
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.