Jump to content

Katai

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by Katai

  1. I'm trying to write PNG file with metadata using a custom Filetype Plugin, and I'm just completely blocked.  I just cannot figure out any way to read/write PNG metadata within C#.  I've tried PngBitmapDecoder examples I've found, but the examples don't work at all.  I've also tried PNGCS library and that doesn't seem to work either.

     

    Does anyone have any ideas on how to write metadata to a PNG file?

  2. Sorry for bringing this back from the grave. I thought I found a different viable solution to my problem, but now I'm coming back around to this.

    So here is what I want to do in detail:

    • Create a series of animation frames in paint.net, 1 frame per layer
    • Save the frames as a single PNG file to create the "sprite sheet"
      • The save function will take each layer and set them side by side onto a single layer.

      [*]Write metadata (custom exif?) that contains information about each frame (coordinates and size)

      [*]Write metadata that contains animation sequences

    Are these things feasible within a Paint.net filetype plugin?

  3. I'm brand new to working with plugins on Paint.net. I'm trying to speed up my workflow a bit. I do sprite animations within Paint.net, and I'm trying to find a way that will help me get to my final format a bit quicker.

    Basically, I have each layer as a frame of the animation. What I want to do is take each layer and stack them side by side so it becomes a proper sprite sheet. At the same time, I want to write an XML file with some data about the spritesheet. Ideally, I want to do this when I save.

    I've been playing around with the FileTypes template, but I honestly have no idea where to start. I initially thought I could iterate through the layers from the "input" Document object and draw them onto a surface with an offset, but I honestly have no idea what any of the functions within the Layer class does.

×
×
  • Create New...