From 1d17f757960601afea932db366ca4c54ee21b054 Mon Sep 17 00:00:00 2001 From: Merlijn Wajer Date: Sun, 5 Sep 2010 17:29:52 +0200 Subject: [PATCH] Colour Conversion, Bitmaps documentation. --- LazDoc/Makefile | 4 ++-- LazDoc/bitmaps.xml | 12 +++++++++++ LazDoc/colour_conv.xml | 45 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 LazDoc/colour_conv.xml diff --git a/LazDoc/Makefile b/LazDoc/Makefile index b5690f2..3fdb80a 100644 --- a/LazDoc/Makefile +++ b/LazDoc/Makefile @@ -1,8 +1,8 @@ .PHONY: default clean -docunits := os_linux dtm mufasatypes bitmaps -coreunits := os_linux dtm mufasatypes bitmaps +docunits := os_linux dtm mufasatypes bitmaps colour_conv +coreunits := os_linux dtm mufasatypes bitmaps colour_conv default: diff --git a/LazDoc/bitmaps.xml b/LazDoc/bitmaps.xml index bad5631..a649ab6 100644 --- a/LazDoc/bitmaps.xml +++ b/LazDoc/bitmaps.xml @@ -90,6 +90,18 @@ Create a TRawImage from passed pixel data. + The MML bitmap unit + Contains the TMufasaClass and a class that manages an array of TMufasaBitmaps. + + Manages TMufasaBitmaps in an array. + + + Function to convert RGB to BGR. + The function is inline so there won't be any function calling overhead. + + + Fill a rectangle with a specific colour. + diff --git a/LazDoc/colour_conv.xml b/LazDoc/colour_conv.xml new file mode 100644 index 0000000..5481643 --- /dev/null +++ b/LazDoc/colour_conv.xml @@ -0,0 +1,45 @@ + + + + + + Convert R, G, B to a Win32 Colour. + + + Convert a Win32 colour to RGB. + + + Convert R, G, B to X, Y, Z. + + + Convert X, Y, Z to R, G, B. + + + Convert R, G, B to H, S, L. + This function multiplies the H, S, L values returned by 100. + + + Convert H, S, L to R, G, B. + + + Convert R, G, B to H, S, L. + This function does not multiply the returned H, S, L by 100. + + + Convert win32 colour to H, S, L. + + + Convert Win32 colour to X, Y, Z. + + + Convert H, S, L to win32 colour. + + + Convert X, Y, Z to win32 colour. + + + Swizzle B, G, R to R, G, B. + + + +