473,406 Members | 2,467 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,406 software developers and data experts.

Combining Ink Strokes with Background Image into a Bit map Image

H
I need to combine Ink strokes with the background image into a bit map. Would appreciate any help

Thank
A

Nov 20 '05 #1
6 4907
* "=?Utf-8?B?QWwgQmFocg==?=" <an*******@discussions.microsoft.com> scripsit:
I need to combine Ink strokes with the background image into a bit map. Would appreciate any help.


\\\
Dim b As New Bitmap(...)
Dim g As Graphics = Graphics.FromImage(b)

' Draw strokes.
g.DrawLine(...)
g.Dispose()
b.Save(...)
b.Dispose()
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
Hello Herfried
I am using InkPicture Control and InkPicture.Ink contains the Ink strokes and InkPicture.Image contains the Image (is the background Image.) Although I said bitmap I really would like to print both Image and the Ink i can copy the Ink to clipboard like
InkPicture.Ink.ClipboardCopy(InkClipboardFormats.B itmap, InkClipboardModes.Copy

or I could do the Image
Clipboard.SetDataObject(InkPicture.Image, True

but what I really like to do is to combine then... one is the form (the image) and the Ink is what user has enter on the form. That is why i need to combine Image and Ink. I don't know how to do it :
Thank
A

Nov 20 '05 #3
* "=?Utf-8?B?QWwgQmFocg==?=" <an*******@discussions.microsoft.com> scripsit:
I am using InkPicture Control and InkPicture.Ink contains the Ink strokes and InkPicture.Image contains the Image (is the background Image.) Although I said bitmap I really would like to print both Image and the Ink i can copy the Ink to clipboard like
InkPicture.Ink.ClipboardCopy(InkClipboardFormats.B itmap, InkClipboardModes.Copy)


I feel sorry, but I never worked with the InkPicture. Is the bitmap a
copied by 'ClipboardCopy' transparent bitmap?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4
Hi Herfried
That is what i am looking for and unfortunately it is not transparent (either image or Ink) so i am trying to find a way to go through each pixels and do OR operation with Ink strokes and background image. don't know exactly how to do that
thank
A

Nov 20 '05 #5
* "=?Utf-8?B?QWwgQmFocg==?=" <an*******@discussions.microsoft.com> scripsit:
That is what i am looking for and unfortunately it is not transparent
(either image or Ink) so i am trying to find a way to go through each
pixels and do OR operation with Ink strokes and background image. don't
know exactly how to do that.


You can play around with the bitmap's 'MakeTransparent' method and then
use 'DrawImage' to blend the images.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #6
Hi
I found this article
http://msdn.microsoft.com/library/de...printingink.as

that talks about how to do print in InkPicture. However it is written in C# which I am not that familiar. There is a class that I need to use in my VB.net App. According to document it says that “The DibGraphicsBuffer.cs file needs to be in its own class library C# project, but then you can write code that references this project to use the DibGraphicsBuffer class. Go to the project properties for this C# project and enable unsafe code.â€

I don’t know and understand what they mean by “DibGraphicsBuffer.cs file needs to be in its own class library C# project, but then you can write code that references this”? How do I reference this c# class? If I could do that I think I can convert it to VB and be able to solve this problem

Thanks so much for all your hel

A

Nov 20 '05 #7

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

Similar topics

1
by: Mark McKay | last post by:
I'm developing an application that draws on several disk based images to create a composite image. I've noticed that my rendering time goes up as I load more images into memory. However, this...
4
by: David. E. Goble | last post by:
Hi All; I am trying to combine to picture galleries onto te one page. But its not quite working. Here is what I have so far. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">...
13
by: Giggle Girl | last post by:
Hi there, I need to use a background image in a TR that does NOT restart everytime it hits a TD. Can it be done? Specifically, if you set a background image for an entier table, now mater how...
2
by: hp3k | last post by:
Hi, I'm a newbie to VB .Net and am unable to locate an example of combine two different font types (Arial and Wingdings 3) in a display (text) string. Does anyone have an example of combining...
3
by: Viken Karaguesian | last post by:
Hello all, I need somehelp with background tiling. I have a sneaking suspicion that what I want to do is not possible, but I'll ask anyway. :>) First some background: Here's the site in...
4
by: JJ | last post by:
I want to display an image with some text overlay Both the image and text will be retrieved from a database, so I have to combine them at run-time. Is there a way to do this? TIA JJ
6
by: Rob | last post by:
Hello, I'm sure this has come up before. I have need for a collection of all elements/objects in an HTML document that have any kind of an attribute (HTML or CSS) that is making use of a URL to...
0
by: microgolf | last post by:
Hey, i'm new to this group beceaus i have a question i have been trying to solve for a few days now but i just cant figure it out. I am trying to constrain the min-width of my site, but i have...
2
by: thephatp | last post by:
I'm having a problem with IE rendering correctly. I'm experimenting with using all div's in my pages now, and I'm not very familiar with the quirks of IE. I have created a sample page, and I'm...
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
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:
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
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
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...
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
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,...

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.