<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    That's an unfortunate restriction.  I suppose to create larger
    images I would need to create multiple surfaces and stitch them
    together?<br>
    <br>
    <div class="moz-cite-prefix">On 1/26/2016 2:33 AM, Petr Kobalíček
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAB2Z3OfO+WH3xnUVz6ZEhOK8dwun0HbchxM3dQKXutzuoRjrUQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">I guess anything above 65535 (width or height) is a
        risk. There are various places that use fixed point, this would
        probably overflow it.</div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Jan 26, 2016 at 2:44 AM, Dan
          Raymond <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:draymond@foxvalley.net" target="_blank">draymond@foxvalley.net</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm trying
            to create a large image surface using Cairo but I am getting
            an error.  When I execute the following code it succeeds
            (status is CAIRO_STATUS_SUCCESS):<br>
            <br>
            uint32_t width = 40960, height = 23040;<br>
            cairo_surface_t *surface =
            cairo_image_surface_create(CAIRO_FORMAT_RGB24, width,
            height);<br>
            printf("status = %d\n", cairo_surface_status(surface));<br>
            <br>
            But if I double the width and height it fails (status is
            CAIRO_STATUS_INVALID_SIZE):<br>
            <br>
            uint32_t width = 81920, height = 46080;<br>
            cairo_surface_t *surface =
            cairo_image_surface_create(CAIRO_FORMAT_RGB24, width,
            height);<br>
            printf("status = %d\n", cairo_surface_status(surface));<br>
            <br>
            Is there an arbitrary restriction on the size of an image
            surface?<span class="HOEnZb"></span><br>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>