473,503 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Bitblt - OK, I'll try try again

_R
I need to establish a canvas for sorts, for painting primarily single
line pictures. Lines and images are currently drawn into raw
graphics space which is derived from a control, using LockBits.

I'm wondering if there is a quicker way to do this (like a wrapper for
Win32 DibSection with PInvoke'd BitBlt?)

Nov 17 '05 #1
5 1136
check out this resource, it has some good info about graphics

http://www.bobpowell.net/

HTH

Ollie Riches

"_R" <_R@nomail.org> wrote in message
news:uh********************************@4ax.com...
I need to establish a canvas for sorts, for painting primarily single
line pictures. Lines and images are currently drawn into raw
graphics space which is derived from a control, using LockBits.

I'm wondering if there is a quicker way to do this (like a wrapper for
Win32 DibSection with PInvoke'd BitBlt?)

Nov 17 '05 #2
_R
>"_R" <_R@nomail.org> wrote in message
news:uh********************************@4ax.com.. .
I need to establish a canvas for sorts, for painting primarily single
line pictures. Lines and images are currently drawn into raw
graphics space which is derived from a control, using LockBits.

I'm wondering if there is a quicker way to do this (like a wrapper for
Win32 DibSection with PInvoke'd BitBlt?)

On Sat, 10 Sep 2005 19:19:53 +0100, "Ollie Riches"
<ol**********@phoneanalyser.net> wrote:
check out this resource, it has some good info about graphics

http://www.bobpowell.net/


Thanks, Ollie. I have been to Bob's site, but didn't see anything
relating speeds of PInvoked Win32 calls. I was kind of hoping that
Bob or someone would jump in here. <g> I know this must have been
explored in detail.
Nov 17 '05 #3
have you tried www.pinvoke.net

HTH

Ollie Riches

"_R" <_R@nomail.org> wrote in message
news:uh********************************@4ax.com...
I need to establish a canvas for sorts, for painting primarily single
line pictures. Lines and images are currently drawn into raw
graphics space which is derived from a control, using LockBits.

I'm wondering if there is a quicker way to do this (like a wrapper for
Win32 DibSection with PInvoke'd BitBlt?)

Nov 17 '05 #4
in fact here you go

http://www.pinvoke.net/default.aspx/...eateDIBSection

HTH

Ollie Riches

"_R" <_R@nospam.org> wrote in message
news:0j********************************@4ax.com...
"_R" <_R@nomail.org> wrote in message
news:uh********************************@4ax.com. ..
I need to establish a canvas for sorts, for painting primarily single
line pictures. Lines and images are currently drawn into raw
graphics space which is derived from a control, using LockBits.

I'm wondering if there is a quicker way to do this (like a wrapper for
Win32 DibSection with PInvoke'd BitBlt?)


On Sat, 10 Sep 2005 19:19:53 +0100, "Ollie Riches"
<ol**********@phoneanalyser.net> wrote:
check out this resource, it has some good info about graphics

http://www.bobpowell.net/


Thanks, Ollie. I have been to Bob's site, but didn't see anything
relating speeds of PInvoked Win32 calls. I was kind of hoping that
Bob or someone would jump in here. <g> I know this must have been
explored in detail.

Nov 17 '05 #5
_R
>> >"_R" <_R@nomail.org> wrote in message
news:uh********************************@4ax.com ...
I need to establish a canvas for sorts, for painting primarily single
line pictures. Lines and images are currently drawn into raw
graphics space which is derived from a control, using LockBits.

I'm wondering if there is a quicker way to do this (like a wrapper for
Win32 DibSection with PInvoke'd BitBlt?)

On Sun, 11 Sep 2005 18:53:41 +0100, "Ollie Riches"
<ol**********@phoneanalyser.net> wrote:
in fact here you go

http://www.pinvoke.net/default.aspx/...eateDIBSection


Great resource, thanks. They even have a short stretch of sample code
for bitblt. I have seen PInvoked Bitblt code posted before but always
as "Why doesn't this work."

I guess I'll have to code both GDI and GDI+ and run my own benchmarks.
I had expected those numbers to be available somewhere, as well as
some organized classes for PInvoking GDI functions. You'd think...

Nov 17 '05 #6

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

Similar topics

2
2425
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...
5
16971
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:...
5
1820
by: _R | last post by:
I need to establish a canvas for sorts, for painting primarily single line pictures. Lines and images are currently drawn into raw graphics space which is derived from a control, using LockBits. ...
3
2859
by: Raed Sawalha | last post by:
Dear, Can I use BitBlt , and GetDC with ASP.NET?
7
2419
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
3976
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...
7
1646
by: Galen Somerville | last post by:
I'm doing something wrong. I made up a test app and put the ZIP file on my website http://home.surewest.net/galen/index.html under Downloads. Basically I have a Panel that will get continuous...
6
7473
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...
1
3125
by: =?Utf-8?B?Y3JhbmtlX2JveQ==?= | last post by:
Hi Folks, I'm not sure where this post belongs since I'm using managed vc.net, but the issue is around GDI BitBlt. Here is a summary of the problem: - I am trying to copy a bitmap of my main...
0
1789
by: crankeboy | last post by:
Hi Folks, My setup: Visual Studio Express 2008, VC++, .NET, BitBlt Here is a summary of the problem: - I am trying to copy a bitmap of my main form into a picture box. - To do this, I bitblt...
0
7076
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...
0
7274
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,...
0
7453
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
5576
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5005
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...
0
4670
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...
0
3162
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3151
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
732
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.