Click here to Skip to main content
15,903,030 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerDuplicate post. Pin
Pete O'Hanlon16-Dec-09 4:55
mvePete O'Hanlon16-Dec-09 4:55 
AnswerRe: How can I deploy an application using VISIFIRE Pin
Dave Kreskowiak16-Dec-09 5:28
mveDave Kreskowiak16-Dec-09 5:28 
AnswerRe: How can I deploy an application using VISIFIRE Pin
The Man from U.N.C.L.E.22-Dec-09 7:16
The Man from U.N.C.L.E.22-Dec-09 7:16 
QuestionHow to change debugger enviorment Pin
Pankaj Saha16-Dec-09 1:18
Pankaj Saha16-Dec-09 1:18 
QuestionMerging Header Cells Pin
Kavyashri16-Dec-09 0:57
Kavyashri16-Dec-09 0:57 
AnswerRe: Merging Header Cells Pin
raghu.g16-Dec-09 20:20
raghu.g16-Dec-09 20:20 
QuestionEmail sent to client notification and tracking the link Pin
Niraj00115-Dec-09 22:02
Niraj00115-Dec-09 22:02 
QuestionHow do I Fill an Arbitrary Hex with a Centered Image Pin
jjwilson6115-Dec-09 9:53
jjwilson6115-Dec-09 9:53 
I have a board of hexagons I've created on the screen and an image (icon) that I want to fill a hexagon with when it is clicked. I have the code to figure out which hex was clicked on but I can't figure out how to get the image into the hex. My attempt:

Image hexImage = new Bitmap(@"IconH.ico");
TextureBrush hexBrush = new TextureBrush(hexImage);
texture.WrapMode = System.Drawing.Drawing2D.WrapMode.Clamp;
bitmapGraphics.FillPolygon(hexBrush, board.Hexes[i, j].Points);

But this just puts the image in the upper right of the board and clips it so the image doesn't show unless I happen to click on the upper right hex. If I set WrapMode to allow tiling I get pieces of the image in the hex I click on but it doesn't line up. I'd like to be able to pass x and y coordinates to FillPolygon to tell it center the image on the polygon but none of the overloaded methods allow it. I'd also like to be able to resize the image to fit the hex since I want to allow the user to change the size of the hexes, but one problem at a time.

Jeff Wilson

AnswerRe: How do I Fill an Arbitrary Hex with a Centered Image Pin
jjwilson6115-Dec-09 10:34
jjwilson6115-Dec-09 10:34 
QuestionMapping printers from a webpage Pin
Not Active15-Dec-09 7:52
mentorNot Active15-Dec-09 7:52 
AnswerRe: Mapping printers from a webpage Pin
Eddy Vluggen15-Dec-09 8:55
professionalEddy Vluggen15-Dec-09 8:55 
GeneralRe: Mapping printers from a webpage Pin
Not Active15-Dec-09 9:05
mentorNot Active15-Dec-09 9:05 
GeneralRe: Mapping printers from a webpage Pin
Eddy Vluggen15-Dec-09 9:18
professionalEddy Vluggen15-Dec-09 9:18 
GeneralRe: Mapping printers from a webpage Pin
Not Active15-Dec-09 17:13
mentorNot Active15-Dec-09 17:13 
QuestionErr Msg: retrieving the COM class factory for component with CLSID {0002E55D-0000-0000-C000-000000000046} failed due to the following error: 80040154 [modified] Pin
Jeneesh K. Velayudhan15-Dec-09 1:11
Jeneesh K. Velayudhan15-Dec-09 1:11 
AnswerRe: Err Msg: retrieving the COM class factory for component with CLSID {0002E55D-0000-0000-C000-000000000046} failed due to the following error: 80040154 Pin
Pete O'Hanlon15-Dec-09 1:26
mvePete O'Hanlon15-Dec-09 1:26 
GeneralRe: Err Msg: retrieving the COM class factory for component with CLSID {0002E55D-0000-0000-C000-000000000046} failed due to the following error: 80040154 Pin
Jeneesh K. Velayudhan22-Dec-09 15:51
Jeneesh K. Velayudhan22-Dec-09 15:51 
AnswerRe: Err Msg: retrieving the COM class factory for component with CLSID {0002E55D-0000-0000-C000-000000000046} failed due to the following error: 80040154 Pin
The Man from U.N.C.L.E.15-Dec-09 10:16
The Man from U.N.C.L.E.15-Dec-09 10:16 
GeneralRe: Err Msg: retrieving the COM class factory for component with CLSID {0002E55D-0000-0000-C000-000000000046} failed due to the following error: 80040154 Pin
5to1baby1in519-Dec-09 6:24
5to1baby1in519-Dec-09 6:24 
GeneralRe: Err Msg: retrieving the COM class factory for component with CLSID {0002E55D-0000-0000-C000-000000000046} failed due to the following error: 80040154 Pin
Jeneesh K. Velayudhan20-Dec-09 20:05
Jeneesh K. Velayudhan20-Dec-09 20:05 
Questionreport viewer Pin
Member 59031014-Dec-09 18:33
Member 59031014-Dec-09 18:33 
AnswerRe: report viewer Pin
Russ-T24-Dec-09 2:27
Russ-T24-Dec-09 2:27 
QuestionStored procedure in formula in crystal report ... Pin
devboycpp14-Dec-09 3:48
devboycpp14-Dec-09 3:48 
QuestionThe remote server returned an error: (401) Unauthorized Help Please Pin
J71rivera12-Dec-09 20:40
J71rivera12-Dec-09 20:40 
AnswerRe: The remote server returned an error: (401) Unauthorized Help Please Pin
Mark Salsbery13-Dec-09 8:19
Mark Salsbery13-Dec-09 8:19 

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.