private static void GetPluginDescription(Type t, PluginBaseAttribute attr, out string name, out BaseBitmap bmp) { name = attr.Name; if (string.IsNullOrEmpty(name)) { name = t.Name; } // Falback icon String iconFile = null; if (!string.IsNullOrEmpty(attr.IconFile)) { iconFile = Path.Combine(Path.GetDirectoryName(t.Assembly.Location), "res", attr.IconFile); if (!File.Exists(iconFile)) { iconFile = null; } } if (string.IsNullOrEmpty(iconFile)) { iconFile = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "res", "CSharp.tif"); } bmp = BaseBitmap.AutoBitmap(iconFile); }
private static void GetPluginDescription(Type t, PluginBaseAttribute attr, out string name, out BaseBitmap bmp) { name = attr.Name; if (string.IsNullOrEmpty(name)) name = t.Name; // Falback icon String iconFile = null; if (!string.IsNullOrEmpty(attr.IconFile)) { iconFile = Path.Combine(Path.GetDirectoryName(t.Assembly.Location), "res", attr.IconFile); if (!File.Exists(iconFile)) iconFile = null; } if (string.IsNullOrEmpty(iconFile)) iconFile = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "res", "CSharp.tif"); bmp = BaseBitmap.AutoBitmap(iconFile); }
internal static HandleRef getCPtr(BaseBitmap obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
public bool CopyPartTo(BaseBitmap dst, int x, int y, int w, int h) { bool ret = C4dApiPINVOKE.BaseBitmap_CopyPartTo(swigCPtr, BaseBitmap.getCPtr(dst), x, y, w, h); return ret; }
public static bool RegisterObjectPlugin(int id, string /* constString&_cstype */ str, int info, NodeDataAllocator /* DataAllocator*_cstype */ g, string /* constString&_cstype */ description, BaseBitmap icon, int disklevel) { bool ret = C4dApiPINVOKE.RegisterObjectPlugin(id, str, info, g /* DataAllocator*_csin */, description, BaseBitmap.getCPtr(icon), disklevel); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public bool SetAlphaPixel(BaseBitmap channel, int x, int y, int val) { bool ret = C4dApiPINVOKE.BaseBitmap_SetAlphaPixel(swigCPtr, BaseBitmap.getCPtr(channel), x, y, val); return ret; }
public void SetTexture(BaseBitmap bm, bool tile, DRAW_ALPHA alphamode, DRAW_TEXTUREFLAGS flags) { C4dApiPINVOKE.BaseDraw_SetTexture(swigCPtr, BaseBitmap.getCPtr(bm), tile, (int)alphamode, (int)flags); }
public static MultipassBitmap AllocWrapper(BaseBitmap bmp) { IntPtr cPtr = C4dApiPINVOKE.MultipassBitmap_AllocWrapper(BaseBitmap.getCPtr(bmp)); MultipassBitmap ret = (cPtr == IntPtr.Zero) ? null : new MultipassBitmap(cPtr, false); return ret; }
public static bool RegisterNodePlugin(int id, string /* constString&_cstype */ str, int info, NodeDataAllocator /* DataAllocator*_cstype */ g, BaseBitmap icon, int disklevel, SWIGTYPE_p_LONG fallback) { bool ret = C4dApiPINVOKE.RegisterNodePlugin(id, str, info, g /* DataAllocator*_csin */, BaseBitmap.getCPtr(icon), disklevel, SWIGTYPE_p_LONG.getCPtr(fallback)); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public IMAGERESULT BmLoadAnimated(SWIGTYPE_p_BitmapLoaderAnimatedData bd, SWIGTYPE_p_BITMAPLOADERACTION action, BaseBitmap bm, int frame) { IMAGERESULT ret = (IMAGERESULT)C4dApiPINVOKE.BitmapLoaderPlugin_BmLoadAnimated(swigCPtr, SWIGTYPE_p_BitmapLoaderAnimatedData.getCPtr(bd), SWIGTYPE_p_BITMAPLOADERACTION.getCPtr(action), BaseBitmap.getCPtr(bm), frame); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public static bool GetBitmapFromClipboard(BaseBitmap map) { bool ret = C4dApiPINVOKE.GetBitmapFromClipboard(BaseBitmap.getCPtr(map)); return ret; }
public static void FillNodePlugin(SWIGTYPE_p_NODEPLUGIN np, int info, NodeDataAllocator /* DataAllocator*_cstype */ g, BaseBitmap icon, int disklevel) { C4dApiPINVOKE.FillNodePlugin__SWIG_1(SWIGTYPE_p_NODEPLUGIN.getCPtr(np), info, g /* DataAllocator*_csin */, BaseBitmap.getCPtr(icon), disklevel); }
public static void CopyToClipboard(BaseBitmap map, int ownerid) { C4dApiPINVOKE.CopyToClipboard__SWIG_1(BaseBitmap.getCPtr(map), ownerid); }
public static bool ShowBitmap(BaseBitmap bm) { bool ret = C4dApiPINVOKE.ShowBitmap__SWIG_1(BaseBitmap.getCPtr(bm)); return ret; }
public static bool GvRegisterOperatorPlugin(int id, string /* constString&_cstype */ str, int info, NodeDataAllocator /* DataAllocator*_cstype */ at, string /* constString&_cstype */ description, int disklevel, int op_class, int op_group, int op_owner, BaseBitmap icon) { bool ret = C4dApiPINVOKE.GvRegisterOperatorPlugin(id, str, info, at /* DataAllocator*_csin */, description, disklevel, op_class, op_group, op_owner, BaseBitmap.getCPtr(icon)); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public bool CopyTo(BaseBitmap dst) { bool ret = C4dApiPINVOKE.BaseBitmap_CopyTo(swigCPtr, BaseBitmap.getCPtr(dst)); return ret; }
public void ScaleIt(BaseBitmap dst, int intens, bool sample, bool nprop) { C4dApiPINVOKE.BaseBitmap_ScaleIt(swigCPtr, BaseBitmap.getCPtr(dst), intens, sample, nprop); }
public IMAGERESULT BmLoad(SWIGTYPE_p_Filename name, BaseBitmap bm, int frame) { IMAGERESULT ret = (IMAGERESULT)C4dApiPINVOKE.BitmapLoaderPlugin_BmLoad(swigCPtr, SWIGTYPE_p_Filename.getCPtr(name), BaseBitmap.getCPtr(bm), frame); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public void ScaleBicubic(BaseBitmap dst, int src_xmin, int src_ymin, int src_xmax, int src_ymax, int dst_xmin, int dst_ymin, int dst_xmax, int dst_ymax) { C4dApiPINVOKE.BaseBitmap_ScaleBicubic(swigCPtr, BaseBitmap.getCPtr(dst), src_xmin, src_ymin, src_xmax, src_ymax, dst_xmin, dst_ymin, dst_xmax, dst_ymax); }
public void DrawTexture(BaseBitmap bmp, ref Fusee.Math.Core.Vector3D /* Vector*&_cstype */ padr4, ref Fusee.Math.Core.Vector3D /* Vector*&_cstype */ cadr, ref Fusee.Math.Core.Vector3D /* Vector*&_cstype */ vnadr, ref Fusee.Math.Core.Vector3D /* Vector*&_cstype */ uvadr, int pntcnt, DRAW_ALPHA alphamode, DRAW_TEXTUREFLAGS flags) { C4dApiPINVOKE.BaseDraw_DrawTexture__SWIG_0(swigCPtr, BaseBitmap.getCPtr(bmp), ref padr4 /* Vector*&_csin */, ref cadr /* Vector*&_csin */, ref vnadr /* Vector*&_csin */, ref uvadr /* Vector*&_csin */, pntcnt, (int)alphamode, (int)flags); }
public IMAGERESULT BmOpen(SWIGTYPE_p_p_PluginMovieData md, SWIGTYPE_p_Filename name, BaseBitmap bm, BaseContainer data, SAVEBIT savebits, int fps) { IMAGERESULT ret = (IMAGERESULT)C4dApiPINVOKE.BitmapSaverPlugin_BmOpen(swigCPtr, SWIGTYPE_p_p_PluginMovieData.getCPtr(md), SWIGTYPE_p_Filename.getCPtr(name), BaseBitmap.getCPtr(bm), BaseContainer.getCPtr(data), (int)savebits, fps); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public void SetMasterAlpha(BaseBitmap master) { C4dApiPINVOKE.MultipassBitmap_SetMasterAlpha(swigCPtr, BaseBitmap.getCPtr(master)); }
public static RENDERRESULT RenderDocument(BaseDocument doc, BaseContainer rdata, SWIGTYPE_p_ProgressHook pr, SWIGTYPE_p_void private_data, BaseBitmap bmp, RENDERFLAGS renderflags, BaseThread th) { RENDERRESULT ret = (RENDERRESULT)C4dApiPINVOKE.RenderDocument(BaseDocument.getCPtr(doc), BaseContainer.getCPtr(rdata), SWIGTYPE_p_ProgressHook.getCPtr(pr), SWIGTYPE_p_void.getCPtr(private_data), BaseBitmap.getCPtr(bmp), (int)renderflags, BaseThread.getCPtr(th)); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public void RemoveChannel(BaseBitmap channel) { C4dApiPINVOKE.BaseBitmap_RemoveChannel(swigCPtr, BaseBitmap.getCPtr(channel)); }
public static bool RegisterCommandPlugin(int id, string /* constString&_cstype */ str, int info, BaseBitmap icon, string /* constString&_cstype */ help, CommandData dat) { bool ret = C4dApiPINVOKE.RegisterCommandPlugin(id, str, info, BaseBitmap.getCPtr(icon), help, CommandData.getCPtr(dat)); if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public IMAGERESULT BmWrite(SWIGTYPE_p_PluginMovieData md, BaseBitmap bm) { IMAGERESULT ret = (IMAGERESULT)C4dApiPINVOKE.BitmapSaverPlugin_BmWrite(swigCPtr, SWIGTYPE_p_PluginMovieData.getCPtr(md), BaseBitmap.getCPtr(bm)); return ret; }
public void GetAlphaPixel(BaseBitmap channel, int x, int y, SWIGTYPE_p_UWORD val) { C4dApiPINVOKE.BaseBitmap_GetAlphaPixel(swigCPtr, BaseBitmap.getCPtr(channel), x, y, SWIGTYPE_p_UWORD.getCPtr(val)); }