//C++ TO C# CONVERTER NOTE: The following #define macro was replaced in-line: //ORIGINAL LINE: #define TERMINATE(ctx, status) do { free(ctx); gd.gdImageDestroy(im); exit(status); } while (0) #define TERMINATE internal static void failPutC(gdIOCtx ctx, int c) { ()c; do { //C++ TO C# CONVERTER TODO TASK: The memory management function 'free' has no equivalent in C#: free(ctx); gd.gdImageDestroy(im); Environment.Exit(1); } while (0); }
internal static int failPutBuf(gdIOCtx ctx, object data, int size) { ()data; ()size; do { //C++ TO C# CONVERTER TODO TASK: The memory management function 'free' has no equivalent in C#: free(ctx); gd.gdImageDestroy(im); Environment.Exit(1); } while (0); return(-1); }
public static extern void gdImageJpegCtx(ref gdImageStruct im, ref gdIOCtx @out);
public static extern IntPtr gdImageCreateFromJpegCtx(ref gdIOCtx @in);
public static extern void gdImagePngCtx(ref gdImageStruct im, ref gdIOCtx @out);
public static extern IntPtr gdImageCreateFromPngCtx(ref gdIOCtx @in);