Click here to Skip to main content
15,886,422 members
Home / Discussions / C#
   

C#

 
AnswerRe: Want to Restart System at the end of installer Pin
mtayyabasghar26-Sep-05 18:24
mtayyabasghar26-Sep-05 18:24 
QuestionTrying to get a thicker vertical scrollbar on the datagrid Pin
totig25-Sep-05 20:29
totig25-Sep-05 20:29 
Questionglobal variables Pin
Brendan Vogt25-Sep-05 20:12
Brendan Vogt25-Sep-05 20:12 
AnswerRe: global variables Pin
Guffa25-Sep-05 20:54
Guffa25-Sep-05 20:54 
QuestionWindows CE Media Player control using c# Pin
Harikaran S25-Sep-05 19:49
Harikaran S25-Sep-05 19:49 
QuestionHashTable and ArrayList difference ? Pin
webC#25-Sep-05 19:21
webC#25-Sep-05 19:21 
AnswerRe: HashTable and ArrayList difference ? Pin
mav.northwind25-Sep-05 20:18
mav.northwind25-Sep-05 20:18 
QuestionTablet Ink and GDI+ Pin
HahnTech25-Sep-05 17:05
HahnTech25-Sep-05 17:05 
Hello,
This week I was given something cool to do. Take a Tablet and Ink enable our Tiff viewing app. Sounded easy. This is what I have:

1 Microsoft.Ink.InkPicture inkPic, that I’m loading with inkPic.image = SomeTiffFromFile
I’m not bothered by scaling problems yet.
This control captures Ink and saves it as Strokes and it works wonderfully. I’m trying to save the Ink into the Tiff.
This is what I have tried:
First I bring the Tiff into Drawing.Bitmap bmp = Image.FromFile(“filename”) (this is the same file I use as the inkPic.Image) Then I make a new Graphic from the Bitmap. Since Ink is made of Points (Ink.Strokes[Foreach].GetPoints(Foreach)) I figured I could do this

Graphics g = Graphics.FromImage(bmp);
for (int i=0; i{
p = this.inkPicture1.Ink.Strokes[i].GetPoints();
foreach (Point x in p)
{
g.DrawLine(pen, x, x);
}
}
bmp.Save(nameBase+".tif", System.Drawing.Imaging.ImageFormat.Tiff);

But that isn’t working.


I took the tmplate for this project from the PaperForm that came with the Tablet SDK. However it doesn’t save any thing and all the SDK examples that save save the Ink speratly from any image using Ink.ExtendedProperties.Add(guidImage, Gif);
I need the Ink burnt into the Tiff as one document.

Out prototype used a brush instead of Ink and it didn’t seem to work well. Too choppy. The InkPicture feels a lot nicer to use.

Ps. Does any one know a good comprehensive book about handling Tiff with GDI+


Thank you for any feedback




Ronald Hahn, CNT - Computer Engineering Technologist

New Technologies Analyst

HahnTech Affiliated With Code Constructors
Edmonton, Alberta, Canada
Email: rhahn@shaw.ca


QuestionApartmentState doubt? Pin
Heinz_25-Sep-05 17:04
Heinz_25-Sep-05 17:04 
AnswerRe: ApartmentState doubt? Pin
Heinz_26-Sep-05 10:19
Heinz_26-Sep-05 10:19 
QuestionAbout System.WinFroms Pin
jzb25-Sep-05 16:45
jzb25-Sep-05 16:45 
QuestionDockable windows Pin
xilefxilef25-Sep-05 10:57
xilefxilef25-Sep-05 10:57 
AnswerRe: Dockable windows Pin
Sasuko26-Sep-05 0:38
Sasuko26-Sep-05 0:38 
GeneralRe: Dockable windows Pin
xilefxilef27-Sep-05 15:36
xilefxilef27-Sep-05 15:36 
QuestionWorking on IE windows Pin
Koevoeter25-Sep-05 10:07
Koevoeter25-Sep-05 10:07 
QuestionAPI hooking Pin
tmp025-Sep-05 10:02
tmp025-Sep-05 10:02 
AnswerRe: API hooking Pin
Joel Lucsy26-Sep-05 15:17
Joel Lucsy26-Sep-05 15:17 
GeneralRe: API hooking Pin
tmp027-Sep-05 4:30
tmp027-Sep-05 4:30 
QuestionDataGrid Event Pin
Yoyosch25-Sep-05 9:16
Yoyosch25-Sep-05 9:16 
QuestionGet the filename of my application Pin
QzRz25-Sep-05 7:29
QzRz25-Sep-05 7:29 
AnswerRe: Get the filename of my application Pin
Stefan Troschuetz25-Sep-05 22:18
Stefan Troschuetz25-Sep-05 22:18 
GeneralRe: Get the filename of my application Pin
QzRz26-Sep-05 5:09
QzRz26-Sep-05 5:09 
QuestionRaw sound Pin
Niklas Ulvinge25-Sep-05 6:42
Niklas Ulvinge25-Sep-05 6:42 
Questionxml file parsing Pin
Elvis_the_Pretzelator25-Sep-05 5:08
Elvis_the_Pretzelator25-Sep-05 5:08 
AnswerRe: xml file parsing Pin
Guffa25-Sep-05 6:08
Guffa25-Sep-05 6:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.