Jump to content
  • 0

Act editor layer png output.


o3124568

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  07/04/12
  • Last Seen:  

As title.

I wonder if script can do layer(frame) out put with png.

Cause i found out that if i just use save in gif.

The shadow / transparent / effect part will lost in some frame.

This is a part of my script.

This part only saving the original image file.

				GrfImage image = act.Sprite.GetImage(layer.SpriteIndex, layer.SpriteType);
				if (image != null) {
					image.MakePinkTransparent();
					image.MakeFirstPixelTransparent();
					image.Convert(GrfImageType.Bgra32);
					image.Save("C:\\Users\\USER\\Desktop\\ouput\\"+id+".png");
					id++;
				}

 

 

Edited by o3124568
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...