473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Fast BitBlt: VS2005, DirectX, ...

_R
I'm porting an old app from VC++6 to .NET and need to update the
bitblt functions from DibSection to managed code. The older functions
ran fine but I may as well opt for the fastest, most versatile
functions available. Not sure if that's managed DirectX or if
alternatives are available.

I'm primarily imprinting memory-resident bit-patterns ('fonts' roughly
speaking, and vector graphics) onto a mem-resident drawing plane (all
2D), then blit'ing the whole thing to the screen.

Have any improved graphics functions surfaced in VS2005? Any
advantage in any of the above (or maybe wrapping the old DibSection
code?).

Nov 17 '05 #1
1 2543
Do you mean using some .NET library to do the job of BitBlt?
If yes, then you can forget about that, because .NET graphics classes
use GDI+ which is *incredibly* slow compared to BitBlt, which is GDI.

_R wrote:
I'm porting an old app from VC++6 to .NET and need to update the
bitblt functions from DibSection to managed code. The older functions
ran fine but I may as well opt for the fastest, most versatile
functions available. Not sure if that's managed DirectX or if
alternatives are available.

I'm primarily imprinting memory-resident bit-patterns ('fonts' roughly
speaking, and vector graphics) onto a mem-resident drawing plane (all
2D), then blit'ing the whole thing to the screen.

Have any improved graphics functions surfaced in VS2005? Any
advantage in any of the above (or maybe wrapping the old DibSection
code?).

Nov 17 '05 #2

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

Similar topics

2
by: DraguVaso | last post by:
Hi, In the override of the Paint-method of a DataGridTextBoxColumn I want to show an image with BitBlt, to see what I can gain there on performance. The problem is: It doesn't show me the image...
19
by: Dave | last post by:
I'm building a research application that needs to be a super speed demon. I decided that one way to do this is to use goto loops instead of while() loops when I need them. that way, instead of...
5
by: JackS | last post by:
I am trying to use GDI32 bitblt to write a bitmap to a control's window, but all I get is an empty rectangle of some rop-dependent color. In short, I use the following logic in a paint event handler:...
1
by: _R | last post by:
I'm porting an old app from VC++6 to .NET and need to update the bitblt functions from DibSection to managed code. The older functions ran fine but I may as well opt for the fastest, most...
7
by: VB Programmer | last post by:
I am using the BitBlt operation to capture various controls into jpegs. It's almost like a screen capture, but of just the control. (This is a VB.NET application.) Because of BitBlt limitations...
7
by: matt | last post by:
Hallo, I have to create a simple sprite movement; in VB6 I used the API BitBlt and all was very good. Using the NET graphical methods (not API) , the result is slow. Do you have a NET...
1
by: John230873 | last post by:
I am getting this error when I try to compile The type 'Microsoft.DirectX.Direct3D.Device' exists in both 'c:\WINDOWS\Microsoft.NET\DirectX for Managed Code\2.0.0.0_x86\Microsoft.DirectX.dll' and...
6
by: Martijn Mulder | last post by:
/* BitBlt.cs C# code using P/Invoke I have good reasons to use P/Invoke to get access to the Win32 API function BitBlt(). But I have trouble understanding the workings of it. Below is a...
0
by: rhbt63 | last post by:
Hi all, Been a while since I have visited this site, I am now a dad and proud of it, anyway will get to the point. I have been coding a sprinting game using VB6 and bitblt, while testing things I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.