Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 10th, 2005, 05:31 AM
Registered User
 
Join Date: Feb 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default highlighting a rectangle area

hi,

Can someone help me
How can I highlight a rectangle area in tiff file?
The rectangle coordinates are specified.
The tiff file is shown in a pictureBox.

Thanks

 
Old February 10th, 2005, 05:54 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Set the BorderStyle property of PictureBox to FixedSingle .

 
Old February 10th, 2005, 06:20 AM
Registered User
 
Join Date: Feb 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

the tiff file is a OCRed text document,
I want to highlight a rectangle area within the image.

I tried to use Bitmap.SetPixel method to change the pixels color
around the area I want to be highlighted but I got an exception
that SetPixel cannot be performed over indexed pixel color.

Is there are any other way to draw a rectangle over the area
that has to be highlighted.?

Thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
client Rectangle angelboy C# 2005 0 July 27th, 2007 08:13 AM
Create rectangle on a form with Vba Coby Access VBA 2 June 25th, 2007 04:11 PM
Rectangle.Contains Method - In NonClient Area chiefouko Pro VB.NET 2002/2003 0 September 30th, 2004 12:32 AM
how to compare if two rectangle redundant davidwong C++ Programming 11 August 23rd, 2004 11:41 AM
Dragging a rectangle Dhodie Pro VB 6 0 February 20th, 2004 04:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.