-
Recent Posts
-
Recent Comments
- RodStephens on Let the user select and deselect 3D objects using WPF and C#
- auntBrause on Let the user select and deselect 3D objects using WPF and C#
- RodStephens on Let the user select and deselect 3D objects using WPF and C#
- Fikret on Let the user select and deselect 3D objects using WPF and C#
- Simon on Convert RTF and TXT files into DOCX files in C#
Archives
- December 2020
- November 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- October 2019
- September 2019
- August 2019
- July 2019
- June 2019
- May 2019
- April 2019
- March 2019
- February 2019
- January 2019
- December 2018
- November 2018
- October 2018
- September 2018
- August 2018
- July 2018
- June 2018
- May 2018
- April 2018
- March 2018
- February 2018
- January 2018
- December 2017
- November 2017
- October 2017
- September 2017
- August 2017
- July 2017
- June 2017
- May 2017
- April 2017
- March 2017
- February 2017
- January 2017
- December 2016
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- June 2014
- May 2014
- February 2014
- January 2014
- December 2013
- October 2013
- August 2013
- June 2013
- December 2012
- September 2012
- July 2012
- June 2012
- November 2011
- May 2011
- April 2011
- February 2011
- December 2010
Categories
- .NET
- 3D
- 3D graphics
- ADO.NET
- algorithms
- animation
- API
- arrays
- attributes
- audio
- books
- C#
- C# programming
- calculations
- challenges
- classes
- clipboard
- coding
- combinatorics
- console
- controls
- cryptography
- curve fitting
- database
- debugging
- dialogs
- directories
- Drag and Drop
- drawing
- drawings
- enums
- Event
- events
- example program
- Excel
- extension methods
- extensions
- files
- finance
- fonts
- formatting
- forms
- fractals
- ftp
- games
- GDI+
- generic
- geometry
- globalization
- graphics
- html
- IDE
- image processing
- inheritance
- interfaces
- internationalization
- internet
- interoperability
- LINQ
- lists
- localization
- mathematics
- memory
- menus
- MessageBox
- methods
- miscellany
- multimedia
- network
- Office
- OOP
- operators
- parsing
- performance
- phone
- PowerPoint
- printers
- printing
- productivity
- programs
- puzzles
- recursion
- reflection
- registry
- regular expressions
- serialization
- settings
- SQL
- stories
- strings
- syntax
- system
- threading
- three-dimensional graphics
- tips
- tools
- transformations
- Uncategorized
- user interface
- variables
- VBA
- web
- Windows Forms programming
- WMI
- Word
- wpf
- XAML
- XML
Meta
Monthly Archives: May 2018
Puzzle: Find the squares in C#
The example Puzzle: Find the equilateral triangles in C# was fun, at least for me, so here’s another puzzle. This time your goal is find all of the squares that you can make using the red dots shown here. If … Continue reading
Posted in algorithms, games, graphics, mathematics
Tagged algorithms, C#, C# programming, example, example program, find the squares, games, graphics, mathematics, puzzles, squares puzzle, Windows Forms programming
1 Comment
Save WriteableBitmap images in multiple formats in WPF and C#
The post Easily save a WriteableBitmap in WPF and C# describes an extension method that makes it easy to save a WriteableBitmap object into a PNG file, but what if you want to save the image in some other format … Continue reading
Posted in extension methods, graphics, image processing, wpf, XAML
Tagged C#, C# programming, example, example program, extension methods, graphics, image file formats, image formats, image processing, png, png file, save bitmap, save WriteableBitmap, SaveBitmap, Windows Forms programming, WPF, WriteableBitmap, XAML
1 Comment
Easily save a WriteableBitmap in WPF and C#
In my post Save bitmap files in WPF and C# I lamented (okay, whined about) the cumbersomeness of saving a WriteableBitmap into a file in WPF. Fortunately there’s a way you can make it easier. Simply add an extension method … Continue reading
Easily manipulate pixels in WPF and C#
After building the example Save bitmap files in WPF and C#, I couldn’t get it out of my head. Doing the math to set the correct bytes in a one-dimensional pixel array isn’t all that hard, but it is annoying … Continue reading
Posted in graphics, image processing, wpf
Tagged Bitmap, BitmapPixelMaker, C#, C# programming, example, example program, graphics, image, image processing, pixels, Windows Forms programming, WPF, WriteableBitmap, XAML
3 Comments
Display team names for a round robin tournament in C#
The example Generate a schedule for a round robin tournament in C# explains how you can generate a schedule for a round robin tournament. This example simply adds the ability to display the schedule using the team names instead of … Continue reading
Save bitmap files in WPF and C#
This example shows how to use WPF and C# to save bitmap files. The example Set the pixels in a WPF bitmap in C# shows how to create a WriteableBitmap in WPF. This example shows how to save the resulting … Continue reading
Posted in files, graphics, image processing
Tagged Bitmap, C#, C# programming, example, example program, files, graphics, image, image processing, pixels, save bitmap, save bitmap files, Windows Forms programming, WPF, WriteableBitmap, XAML
3 Comments
Draw different styles of “illuminated” text in C#
My previous post Draw “illuminated” text in C# showed how to draw “illuminated” text. It drew each paragraph’s initial letter in a large font with a box around it. Real illuminated manuscripts typically make the initial letter much more elaborate. … Continue reading
Posted in fonts, graphics, strings
Tagged C#, C# programming, example, example program, fonts, graphics, illuminated text, strings, text, Windows Forms programming
1 Comment
Draw “illuminated” text in C#
This example lets you draw “illuminated text” where each paragraph begins with an oversized letter. In some illuminated manuscripts, the first letter of a paragraph is drawn in a larger font than the remaining text. This example does something similar. … Continue reading
Posted in fonts, graphics, strings
Tagged C#, C# programming, example, example program, fonts, graphics, illuminated text, strings, text, Windows Forms programming
7 Comments
Merge directories in C#
This example lets you merge directories. Once upon a time, if you used Windows Explorer to move a file from one directory to another and the destination directory already contained a file with that name, you had the option of … Continue reading
Posted in directories, files, system, tools
Tagged C#, C# programming, copy files, directories, example, example program, File Explorer, files, merge directories, merge files, move files, system, tools, Windows Explorer, Windows Forms programming
Leave a comment
Use a FileSystemWatcher to build a spooler in C#
This example uses a FileSystemWatcher to implement a spooling program. SPOOL is an ancient computer acronym dating from the 1950s that stands for “Simultaneous Peripheral Operations On-Line.” It is a technique in which jobs are placed in a queue in … Continue reading
Posted in controls, files
Tagged C#, C# programming, controls, example, example program, file changes, files, FileSystemWatcher, spool, spooler, spooling, watch files, Windows Forms programming
2 Comments