Re: seeking for help on MNG creation
"Gerard Juyn" <gjuyn-qWit8jRvyhVmR6Xm/[email protected]> Wed, 31 Mar 2004 12:47:35 +0100
| Newsgroups | gmane.comp.graphics.mng.general |
|---|---|
| Message-ID | <406ABDE7.17525.EC0C48@localhost> |
> I am not brave enough but now I can ask one of the brave windoze users
> to install this tool and check my files for me. Thanks.
<vbg>
I suppose good luck to them then...
> Oops, you are right, the code was missing an important call and didn't
> load the overlay image at all. I've fixed that and now I have at least a
> valid MNG file again: http://sven.gimp.org/heart-opt.mng. Doesn't seem
> to work yet but I guess I will have to check my clip rectangles again. I
> am not sure if I understood the exact meaning of all the coordinates
> that are being passed to mng_putchunk_past() and mng_putchunk_past_src()
That makes two of us....
From the spec:
=The x_offset and y_offset distances and the PAST clipping boundaries are
=measured, in pixels, positive rightward and downward from either the {0,0}
=pixel of the destination image or the {target_x, target_y} position in the
=destination image. They do not necessarily have to fall within the destination
=image. Only those pixels of the source image that fall within the destination
=image and also within the specified clipping boundaries will be copied into
=the destination image. The coordinate system for offsets and clipping is with
= respect to the upper lefthand corner of the destination image, .....
From this I would expect that your x_offset would be -X*dest_width to get
part X from the image-strip, and the clipping 0,dest_width,0,dest_height.
Gerard
--
Send the message body "help" to [email protected]