90 TRACE(
"GdiplusStartupInput %d %p %d %d\n",
input->GdiplusVersion,
91 input->DebugEventCallback,
input->SuppressBackgroundThread,
92 input->SuppressExternalCodecs);
94 if(
input->GdiplusVersion < 1 ||
input->GdiplusVersion > 2)
97 if(
input->SuppressBackgroundThread){
167 REAL center_x, center_y, rad_x, rad_y, cos_start, cos_end,
168 sin_start, sin_end,
a, half;
173 center_x =
x1 + rad_x;
174 center_y =
y1 + rad_y;
182 a = 4.0 / 3.0 * (1 -
cos(half)) /
sin(half);
188 pt[1].X = cos_start -
a * sin_start;
189 pt[1].Y = sin_start +
a * cos_start;
193 pt[2].X = cos_end +
a * sin_end;
194 pt[2].Y = sin_end -
a * cos_end;
197 for(
i = (write_first ? 0 : 1);
i < 4;
i ++){
198 pt[
i].X =
pt[
i].X * rad_x + center_x;
199 pt[
i].Y =
pt[
i].Y * rad_y + center_y;
217 stretched += ((
REAL)revs_off) *
M_PI * 2.0;
227 REAL partial_end_angle, end_angle;
229 end_angle =
deg2rad(start_angle + sweep_angle);
230 start_angle =
deg2rad(start_angle);
240 if( sweep_angle > 0.0 )
242 if (start_angle >= end_angle)
break;
243 partial_end_angle =
min(start_angle +
M_PI_2, end_angle);
247 if (start_angle <= end_angle)
break;
248 partial_end_angle =
max(start_angle -
M_PI_2, end_angle);
254 start_angle = partial_end_angle;
257 if (
i == 0)
return 0;
269 return ((
color & 0x0000ff) << 16) +
271 ((
color & 0xff0000) >> 16);
281 if ((
color & 0xff000000) == 0xff000000)
return 0;
308 if((
dx == 0.0) && (
dy != 0.0))
346 return units *
dpi * (1.0f / 300.0f);
350 FIXME(
"Unhandled unit type: %d\n",
unit);
377 FIXME(
"Unhandled unit type: %d\n",
unit);
395 xdiff = pts[2].
X - pts[0].
X;
396 ydiff = pts[2].
Y - pts[0].
Y;
399 *
x1 = pts[1].
X - tension * xdiff;
400 *
y1 = pts[1].
Y - tension * ydiff;
401 *
x2 = pts[1].
X + tension * xdiff;
402 *
y2 = pts[1].
Y + tension * ydiff;
418 if(
path->datalen == 0){
425 if(!
path->pathdata.Types){
431 else if(
path->datalen -
path->pathdata.Count <
len){
446 BYTE *dst_bits,
INT dst_stride,
const BYTE *src_bits,
INT src_stride)
451 const BYTE *
src=src_bits+
y*src_stride;
488 if (!rc)
return "(null)";
494 if (!
pt)
return "(null)";
500 if (!
matrix)
return "(null)";
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
const char * wine_dbg_sprintf(const char *format,...)
#define DLL_PROCESS_ATTACH
#define DLL_PROCESS_DETACH
void free_installed_fonts(void)
GpStatus WINGDIPAPI GdipDeletePath(GpPath *path)
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
_ACRTIMP double __cdecl fabs(double)
_ACRTIMP double __cdecl sin(double)
_ACRTIMP double __cdecl cos(double)
_ACRTIMP double __cdecl atan2(double, double)
void WINGDIPAPI GdipFree(void *ptr)
static const REAL mm_per_inch
GpStatus hresult_to_status(HRESULT res)
void delete_element(region_element *element)
static const REAL inch_per_mm
Status WINAPI GdiplusStartup(ULONG_PTR *token, const struct GdiplusStartupInput *input, struct GdiplusStartupOutput *output)
void convert_32bppARGB_to_32bppPARGB(UINT width, UINT height, BYTE *dst_bits, INT dst_stride, const BYTE *src_bits, INT src_stride)
const char * debugstr_rectf(const RectF *rc)
REAL units_to_pixels(REAL units, GpUnit unit, REAL dpi, BOOL printer_display)
BOOL lengthen_path(GpPath *path, INT len)
static const REAL inch_per_point
BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
void calc_curve_bezier(const GpPointF *pts, REAL tension, REAL *x1, REAL *y1, REAL *x2, REAL *y2)
ULONG WINAPI GdiplusShutdown_wrapper(ULONG_PTR token)
const char * debugstr_pointf(const PointF *pt)
GpStatus WINAPI GdiplusNotificationHook(ULONG_PTR *token)
static void add_arc_part(GpPointF *pt, REAL x1, REAL y1, REAL x2, REAL y2, REAL start, REAL end, BOOL write_first)
COLORREF ARGB2COLORREF(ARGB color)
void calc_curve_bezier_endp(REAL xend, REAL yend, REAL xadj, REAL yadj, REAL tension, REAL *x, REAL *y)
static Status WINAPI NotificationHook(ULONG_PTR *token)
REAL pixels_to_units(REAL pixels, GpUnit unit, REAL dpi, BOOL printer_display)
static REAL unstretch_angle(REAL angle, REAL dia_x, REAL dia_y)
REAL gdiplus_atan2(REAL dy, REAL dx)
static const REAL point_per_inch
void *WINGDIPAPI GdipAlloc(SIZE_T size)
HBITMAP ARGB2BMP(ARGB color)
void WINAPI GdiplusNotificationUnhook(ULONG_PTR token)
INT arc2polybezier(GpPointF *points, REAL left, REAL top, REAL width, REAL height, REAL start_angle, REAL sweep_angle)
REAL units_scale(GpUnit from, GpUnit to, REAL dpi, BOOL printer_display)
const char * debugstr_matrix(const GpMatrix *matrix)
static void WINAPI NotificationUnhook(ULONG_PTR token)
void init_generic_string_formats(void)
static INT gdip_round(REAL x)
static REAL deg2rad(REAL degrees)
void free_generic_string_formats(void)
@ UnsupportedGdiplusVersion
GLint GLint GLint GLint GLint x
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
GLclampf GLclampf GLclampf alpha
GLint GLint GLint GLint GLint GLint y
GLint GLint GLsizei GLsizei height
GLint GLint GLsizei width
GLdouble GLdouble GLdouble GLdouble top
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
GLboolean GLboolean GLboolean GLboolean a
GLenum GLenum GLenum input
GLsizei const GLfloat * points
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat token
png_const_structrp png_const_inforp int * unit
NotificationUnhookProc NotificationUnhook
NotificationHookProc NotificationHook
BITMAPINFOHEADER bmiHeader
HBITMAP WINAPI CreateDIBSection(HDC hDC, CONST BITMAPINFO *BitmapInfo, UINT Usage, VOID **Bits, HANDLE hSection, DWORD dwOffset)
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG y1
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG _In_ LONG y2
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2