473,785 Members | 2,374 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4958
* "=?Utf-8?B?QWwgQmFocg= =?=" <an*******@disc ussions.microso ft.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.FromIm age(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.Imag e 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(I nkClipboardForm ats.Bitmap, InkClipboardMod es.Copy

or I could do the Image
Clipboard.SetDa taObject(InkPic ture.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*******@disc ussions.microso ft.com> scripsit:
I am using InkPicture Control and InkPicture.Ink contains the Ink strokes and InkPicture.Imag e 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(I nkClipboardForm ats.Bitmap, InkClipboardMod es.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*******@disc ussions.microso ft.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 'MakeTransparen t' 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 DibGraphicsBuff er.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 DibGraphicsBuff er class. Go to the project properties for this C# project and enable unsafe code.â€

I don’t know and understand what they mean by “DibGraphicsB uffer.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
2049
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 seems to be due to the number of distinct images rather than the number of bytes they take up, since when I combine them into a single image in photoshop my rendering time goes down again. Since an image is essentially a 1D array of bytes in...
4
1746
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"> <html> <head> <title>Bow's and foggy's stored signatures</title> <script type="text/javascript">
13
3971
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 many TRs and TDs you have, it will show the complete/unfragmented image (as long as you don't over-ride it). When I set a TR background image, every time I hit a TD it "re-seeds" the image. I want to have a TR that shows an 800px image in it's
2
2822
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 two font types together in a string that I could utilize? The text will be going into a button field and I wanted to use some of the symbols that are part of the Wingdings font types along with my main text. Thank you in advance for your...
3
3243
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 question: www.sayatnova.com (I'm sure many of you have seen this before as I've often asked for help). I've come a long way since I first created the site many moons ago and I'm trying to convert it to a (1) Table-less, (2) Frame-less and (3) Validated...
4
2490
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
7238
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 display an image. document.images only seems to reference image tags. The collection needs to include background images, input type = image, image maps, css assigned background, etc. Honestly, I am probably not aware of all the possibilities...
0
1406
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 some div's in there with a fixed and absolute positioning... And these two dont seem to get along? Or maybe it is beceaus i use z-index to layer some divs.
2
14074
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 really confused as to what is going on in IE. FF renders the page exactly as I expect. IE renders the page with everything in the correct location, but it seems to double the background image for a sub-div section that is moved up using a negative...
0
9646
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
10346
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
10157
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...
0
8982
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
6742
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
5514
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4055
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
3658
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2887
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.