Jump to content

Katai

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by Katai

  1. Yes, I already have that setup (I'm using spng). I just have no idea how to get metadata on the PNG
  2. I'm pretty sure this is supported, but I've seen zero sample code on how to go about this? Could someone give me a snip of code to help get me started?
  3. 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?
  4. I'm working with a proprietary format that supports layers. I'm trying to write a FileType Plugin that supports this format, but when I try to save, it asks me to flatten the image, and I end up with only a single layer. Is there a flag or something I'm missing in my code?
  5. 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?
  6. I can probably just save it as a tar file or some equivalent that contains both files. Aside from that point, is there a way to "tile" the layers and flatten them onto a single PNG?
  7. Yes, I have seen those, and neither of them really do what I need them to do. They both animate existing sprite sheets, but doesn't help me at all in creating one. The tedious part is aligning each frame and recording the coordinate data in an XML file that can be read by my game engine.
  8. 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...