/*************************************************************************** * Copyright (c) 2024 Microsoft Corporation * * This program and the accompanying materials are made available under the * terms of the MIT License which is available at * https://opensource.org/licenses/MIT. * * SPDX-License-Identifier: MIT **************************************************************************/ /**************************************************************************/ /**************************************************************************/ /** */ /** GUIX Component */ /** */ /** Utility (Utility) */ /** */ /**************************************************************************/ #define GX_SOURCE_CODE /* Include necessary system files. */ #include "gx_api.h" #include "gx_utility.h" /**************************************************************************/ /* */ /* FUNCTION RELEASE */ /* */ /* _gxe_utility_pixelmap_simple_rotate PORTABLE C */ /* 6.1 */ /* AUTHOR */ /* */ /* Kenneth Maxwell, Microsoft Corporation */ /* */ /* DESCRIPTION */ /* */ /* This function checks for errors in the utility pixelmap rotate call.*/ /* */ /* INPUT */ /* */ /* src The pixelmap to be rotated */ /* angle The angle to be rotated */ /* destination The rotated bitmap to be */ /* returned */ /* rot_cx X coordinate of rotation */ /* center */ /* rot_cy Y coordinate of rotation */ /* center */ /* */ /* OUTPUT */ /* */ /* status Completion status */ /* */ /* CALLS */ /* */ /* _gx_utility_pixelmap_simple_rotate */ /* */ /* CALLED BY */ /* */ /* Application Code */ /* GUIX Internal Code */ /* */ /* RELEASE HISTORY */ /* */ /* DATE NAME DESCRIPTION */ /* */ /* 05-19-2020 Kenneth Maxwell Initial Version 6.0 */ /* 09-30-2020 Kenneth Maxwell Modified comment(s), */ /* resulting in version 6.1 */ /* */ /**************************************************************************/ UINT _gxe_utility_pixelmap_simple_rotate(GX_PIXELMAP *src, INT angle, GX_PIXELMAP *destination, INT *rot_cx, INT *rot_cy) { UINT status; /* Check for invalid input pointers. */ if ((src == GX_NULL) || (destination == GX_NULL)) { return GX_PTR_ERROR; } /* Call the actual utility pixelmap simple rotate function. */ status = _gx_utility_pixelmap_simple_rotate(src, angle, destination, rot_cx, rot_cy); return status; }