PC Review


Reply
Thread Tools Rate Thread

Combining Ink Strokes with Background Image into a Bit map Image

 
 
=?Utf-8?B?QWwgQmFocg==?=
Guest
Posts: n/a
 
      21st May 2004
H
I need to combine Ink strokes with the background image into a bit map. Would appreciate any help

Thank
A

 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      21st May 2004
* "=?Utf-8?B?QWwgQmFocg==?=" <(E-Mail Removed)> 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/>
 
Reply With Quote
 
=?Utf-8?B?QWwgQmFocg==?=
Guest
Posts: n/a
 
      21st May 2004
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.Bitmap, 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

 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      21st May 2004
* "=?Utf-8?B?QWwgQmFocg==?=" <(E-Mail Removed)> 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.Bitmap, 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/>
 
Reply With Quote
 
=?Utf-8?B?QWwgQmFocg==?=
Guest
Posts: n/a
 
      21st May 2004
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

 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      21st May 2004
* "=?Utf-8?B?QWwgQmFocg==?=" <(E-Mail Removed)> 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/>
 
Reply With Quote
 
=?Utf-8?B?QWwgQmFocg==?=
Guest
Posts: n/a
 
      21st May 2004
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Background desktop image vs. Lockout image Rickles Windows XP General 0 12th Feb 2006 03:38 PM
Brush Strokes Image Editor ZZZZZZZZZZZZZZZZZz Freeware 0 1st Jul 2005 03:42 PM
How to change desktop image loading between WinXP logo, and Background image Sam Lowry Windows XP General 3 13th May 2005 10:14 PM
Export the worksheet background image as an image file - possible? DataFreakFromUtah Microsoft Excel Programming 2 10th Apr 2004 04:49 PM
How to convert Ink Strokes to an Image =?Utf-8?B?QWwgQmFocg==?= Microsoft VB .NET 3 24th Mar 2004 07:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:36 PM.