Winforms, GDI+ and basic conceptual fightings
Posted: Wed Jan 15, 2025 8:21 am
After years of avoiding this, i finally want to tackle some graphic output. Searching, i found a lamentable loss of docs for anything a bit more complicated than "DrawLine"...
Attached a sample of a booking plan, what should in the end be viewable and printable.
* Textblock, horizontally centered, pegged to the upper border
* Blocks of rows of rectangles, number of rectangles might differ for every row
* Each rectangle has a number inside
* Each row has "outside" a row number, ideally "not rotated"
* Each block has a naming letter, not rotated
* in the end all of them should be placed together and scaled to fit onto a given page format.
Basically my question is, how to dynamically handle multiple placings of somewhat rotated "Building blocks". Naturally, i might accept restrictions, calculating everything "by hand", but there has to be a better way.
I think i meanwhile grasped the concept of transformations more or less, but i struggle how to proceed. Would it get easier using panels?
(Chris, i remember you presented some GDI samples back in VN days, but can't find them anymore, is there a place to get them?)
Attached a sample of a booking plan, what should in the end be viewable and printable.
* Textblock, horizontally centered, pegged to the upper border
* Blocks of rows of rectangles, number of rectangles might differ for every row
* Each rectangle has a number inside
* Each row has "outside" a row number, ideally "not rotated"
* Each block has a naming letter, not rotated
* in the end all of them should be placed together and scaled to fit onto a given page format.
Basically my question is, how to dynamically handle multiple placings of somewhat rotated "Building blocks". Naturally, i might accept restrictions, calculating everything "by hand", but there has to be a better way.
I think i meanwhile grasped the concept of transformations more or less, but i struggle how to proceed. Would it get easier using panels?
(Chris, i remember you presented some GDI samples back in VN days, but can't find them anymore, is there a place to get them?)