コード例 #1
0
 private void pasteBeforeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (HasDataInClipboard() && HasSelected())
     {
         int id = SelectedIndex();
         LayerRenderOption l = new LayerRenderOption();
         if (l.Read((byte[])Clipboard.GetData("ActEdit_LayerRenderOption")))
         {
             file.renderLayers.Insert(id, l);
             listView1.Items.Insert(id, new ListViewItem(l.name));
         }
     }
 }
コード例 #2
0
 private void RenderLayerWithCameraRatio(Graphics g, float x, float y, LayerRenderOption layer)
 {
     RenderLayer(g, layer.CalculateX(x) - 400.0f, layer.CalculateY(y) - 300.0f, file.FindLayerByName(layer.name));
 }