ABSTRACT
The class presented here will place a watermark on an image. It takes a Bitmap object and returns another Bitmap with a string drawn diagonally (top-left to bottom-right) across it. An instance of the class is constructed with the actual text to place, font properties, maximum wanted font size (more on this in a bit), Color and transparency (byte). This may sound fairly trivial but calculating the angle of the diagonal line through a Rectangle of unknown Size at design time (big d'oh! if there's a library method that already does this!) and autosizing the font to fill as much of the bitmap as possible, without being clipped involves Trigonometry and Pythagoras.
TABLE OF CONTENTS
TITLE PAGE
CERTIFICATION
APPROVAL
DEDICATION
ACKNOWLEDGEMENT
ABSTRACT
TABLE OF CONTENTS
Possibility, A. (2018). USING TRIGONOMETRY AND PYTHAGORAS TO WATERMARK AN IMAGE. Afribary. Retrieved from https://tracking.afribary.com/works/using-trigonometry-and-pythagoras-to-watermark-an-image-4329
Possibility, Aka "USING TRIGONOMETRY AND PYTHAGORAS TO WATERMARK AN IMAGE" Afribary. Afribary, 29 Jan. 2018, https://tracking.afribary.com/works/using-trigonometry-and-pythagoras-to-watermark-an-image-4329. Accessed 09 Nov. 2024.
Possibility, Aka . "USING TRIGONOMETRY AND PYTHAGORAS TO WATERMARK AN IMAGE". Afribary, Afribary, 29 Jan. 2018. Web. 09 Nov. 2024. < https://tracking.afribary.com/works/using-trigonometry-and-pythagoras-to-watermark-an-image-4329 >.
Possibility, Aka . "USING TRIGONOMETRY AND PYTHAGORAS TO WATERMARK AN IMAGE" Afribary (2018). Accessed November 09, 2024. https://tracking.afribary.com/works/using-trigonometry-and-pythagoras-to-watermark-an-image-4329