473,654 Members | 3,062 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 1141
check out this resource, it has some good info about graphics

http://www.bobpowell.net/

HTH

Ollie Riches

"_R" <_R@nomail.or g> wrote in message
news:uh******** *************** *********@4ax.c om...
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.or g> 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**********@p honeanalyser.ne t> 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.or g> wrote in message
news:uh******** *************** *********@4ax.c om...
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.or g> wrote in message
news:0j******** *************** *********@4ax.c om...
"_R" <_R@nomail.or g> 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**********@p honeanalyser.ne t> 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.or g> wrote in message
news:uh***** *************** ************@4a x.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**********@p honeanalyser.ne t> 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
2449
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 in the DataGrid-Cell's, but a black background... Does anybody has any idea what I am doing wrong? Thanks a lot in advance,
5
16988
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: dstGr = args.graphics; srcGr = Graphics.FromImage( bitmap ); dstHdc = dstGr.GetHdc(); srcHdc = srcGr.GetHdc(); BitBlt( dstHdc, x, y, width, height, srcHdc, 0, 0, rop ); What am I doing wrong? A complete demo program follows.
5
1822
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. I'm wondering if there is a quicker way to do this (like a wrapper for Win32 DibSection with PInvoke'd BitBlt?)
3
2869
by: Raed Sawalha | last post by:
Dear, Can I use BitBlt , and GetDC with ASP.NET?
7
2426
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 I know that the application has to always be on top. The problem: I am running this application on a Windows Server 2003 PC. The server is in another state (North Carolina). I am in Florida. I access the server over Termincal Server /Remote...
7
3986
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 example about BitBlt and the sprite movement , because I'm a little in trouble in implementing it
7
1651
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 updates and I don't want any flicker. In the test app it sets up a mem map and sets it to Black. When the Button is clicked it calls a routine that puts tick marks at top and bottom. The tick marks do not show up.
6
7495
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 small, compilable and runnable program that shows the
1
3146
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 form into a picture box. - To do this, I bitblt using the device contexts of the form and a bitmap object. - After blitting, the bitmap image is always blank. I don't understand what
0
1802
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 using the device contexts of the form and a bitmap object. - After blitting, the bitmap image is always blank. I don't understand what I'm doing wrong here. Here is my relevant code:
0
8375
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8815
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
8707
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
8482
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
8593
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7306
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5622
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
4149
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.