예제 #1
0
 protected override void UpdateBitmaps()
 {
     mOnOffMain     = C2DGraphics.ColorizeBitmapHQ(Properties.Resource_s.mc_onoff, mLevelColors[2]);
     mOnOffMainSel  = C2DGraphics.ColorizeBitmapHQ(Properties.Resource_s.mc_onoff, mSelColor);
     mOnOffSlide    = C2DGraphics.ColorizeBitmapHQ(Properties.Resource_s.mc_onoffslide, mLevelColors[2]);
     mOnOffSlideSel = C2DGraphics.ColorizeBitmapHQ(Properties.Resource_s.mc_onoffslide, mSelColor);
 }
예제 #2
0
 protected override void UpdateBitmaps()
 {
     mOnOffMain     = C2DGraphics.ColorizeBitmapHQ(global::UV_DLP_3D_Printer.Properties.Resources.mc_onoff, mLevelColors[2]);
     mOnOffMainSel  = C2DGraphics.ColorizeBitmapHQ(global::UV_DLP_3D_Printer.Properties.Resources.mc_onoff, mSelColor);
     mOnOffSlide    = C2DGraphics.ColorizeBitmapHQ(global::UV_DLP_3D_Printer.Properties.Resources.mc_onoffslide, mLevelColors[2]);
     mOnOffSlideSel = C2DGraphics.ColorizeBitmapHQ(global::UV_DLP_3D_Printer.Properties.Resources.mc_onoffslide, mSelColor);
 }
예제 #3
0
 protected override void UpdateBitmaps()
 {
     mSOpenStd    = C2DGraphics.ColorizeBitmapHQ(mSOpen, mLevelColors[2]);
     mSOpenSel    = C2DGraphics.ColorizeBitmapHQ(mSOpen, mSelColor);
     mSOpenPress  = C2DGraphics.ColorizeBitmapHQ(mSOpen, mLevelColors[0]);
     mSCloseStd   = C2DGraphics.ColorizeBitmapHQ(mSClose, mLevelColors[2]);
     mSCloseSel   = C2DGraphics.ColorizeBitmapHQ(mSClose, mSelColor);
     mSClosePress = C2DGraphics.ColorizeBitmapHQ(mSClose, mLevelColors[0]);
 }
예제 #4
0
        protected override void UpdateBitmaps()
        {
            float vang = (float)(45.0 * Math.PI / 180.0);

            for (int i = 0; i < 4; i++)
            {
                float vlen = (float)(mInRad + mArchWidth / 2 + i * mArchWidth);
                mArchTxtPos[i] = new PointF((float)(mCenter - 16 + Math.Cos(vang) * vlen), (float)(mCenter - 10 - Math.Sin(vang) * vlen));
            }
            mArches[0] = C2DGraphics.ColorizeBitmapHQ(global::UV_DLP_3D_Printer.Properties.Resources.mc_px3, mLevelColors[0]);
            mArches[1] = C2DGraphics.ColorizeBitmapHQ(global::UV_DLP_3D_Printer.Properties.Resources.mc_px2, mLevelColors[1]);
            mArches[2] = C2DGraphics.ColorizeBitmapHQ(global::UV_DLP_3D_Printer.Properties.Resources.mc_px1, mLevelColors[2]);
            mArches[3] = C2DGraphics.ColorizeBitmapHQ(global::UV_DLP_3D_Printer.Properties.Resources.mc_px0, mLevelColors[3]);

            mArchesSel[0] = C2DGraphics.ColorizeBitmapHQ(global::UV_DLP_3D_Printer.Properties.Resources.mc_px3, mSelColor);
            mArchesSel[1] = C2DGraphics.ColorizeBitmapHQ(global::UV_DLP_3D_Printer.Properties.Resources.mc_px2, mSelColor);
            mArchesSel[2] = C2DGraphics.ColorizeBitmapHQ(global::UV_DLP_3D_Printer.Properties.Resources.mc_px1, mSelColor);
            mArchesSel[3] = C2DGraphics.ColorizeBitmapHQ(global::UV_DLP_3D_Printer.Properties.Resources.mc_px0, mSelColor);
            // center
            mCentImg    = C2DGraphics.ColorizeBitmapHQ(global::UV_DLP_3D_Printer.Properties.Resources.mc_cent, mLevelColors[3]);
            mCentImgSel = C2DGraphics.ColorizeBitmapHQ(global::UV_DLP_3D_Printer.Properties.Resources.mc_cent, mSelColor);
            // corners
            mYHomeImg    = C2DGraphics.ColorizeBitmapHQ(global::UV_DLP_3D_Printer.Properties.Resources.mc_trcorner, mFrameColor);
            mYHomeImgSel = C2DGraphics.ColorizeBitmapHQ(global::UV_DLP_3D_Printer.Properties.Resources.mc_trcorner, mSelColor);
            mXHomeImg    = C2DGraphics.RotateBmp90deg(mYHomeImg, 3);
            mXHomeImgSel = C2DGraphics.RotateBmp90deg(mYHomeImgSel, 3);
            Bitmap brCorner = C2DGraphics.RotateBmp90deg(global::UV_DLP_3D_Printer.Properties.Resources.mc_trcorner, 1);

            mAllHomeImg    = C2DGraphics.ColorizeBitmapHQ(brCorner, mLevelColors[1]);
            mAllHomeImgSel = C2DGraphics.ColorizeBitmapHQ(brCorner, mSelColor);

            mHomeImg     = C2DGraphics.ColorizeBitmapHQ(global::UV_DLP_3D_Printer.Properties.Resources.mc_home, mLevelColors[3]);
            mhomeImgCent = C2DGraphics.ColorizeBitmapHQ(global::UV_DLP_3D_Printer.Properties.Resources.mc_home, mFrameColor);
            // arrows
            mArrowU = C2DGraphics.ColorizeBitmapHQ(global::UV_DLP_3D_Printer.Properties.Resources.mc_uparrow, mArrowCol);
            mArrowR = C2DGraphics.RotateBmp90deg(mArrowU, 1);
            mArrowD = C2DGraphics.RotateBmp90deg(mArrowU, 2);
            mArrowL = C2DGraphics.RotateBmp90deg(mArrowU, 3);
        }
예제 #5
0
        protected override void UpdateBitmaps()
        {
            mSteps[0] = C2DGraphics.ColorizeBitmapHQ(Properties.Resource_s.mc_z3, mLevelColors[0]);
            mSteps[1] = C2DGraphics.ColorizeBitmapHQ(Properties.Resource_s.mc_z2, mLevelColors[1]);
            mSteps[2] = C2DGraphics.ColorizeBitmapHQ(Properties.Resource_s.mc_z1, mLevelColors[2]);
            mSteps[3] = C2DGraphics.ColorizeBitmapHQ(Properties.Resource_s.mc_z0, mLevelColors[3]);

            mStepsSel[0] = C2DGraphics.ColorizeBitmapHQ(Properties.Resource_s.mc_z3, mSelColor);
            mStepsSel[1] = C2DGraphics.ColorizeBitmapHQ(Properties.Resource_s.mc_z2, mSelColor);
            mStepsSel[2] = C2DGraphics.ColorizeBitmapHQ(Properties.Resource_s.mc_z1, mSelColor);
            mStepsSel[3] = C2DGraphics.ColorizeBitmapHQ(Properties.Resource_s.mc_z0, mSelColor);
            // center
            mCentImg    = C2DGraphics.ColorizeBitmapHQ(Properties.Resource_s.mc_centn, mLevelColors[3]);
            mCentImgSel = C2DGraphics.ColorizeBitmapHQ(Properties.Resource_s.mc_centn, mSelColor);
            // home
            mTopImg      = C2DGraphics.ColorizeBitmapHQ(Properties.Resource_s.mc_ztop, mFrameColor);
            mTopImgSel   = C2DGraphics.ColorizeBitmapHQ(Properties.Resource_s.mc_ztop, mSelColor);
            mHomeImg     = C2DGraphics.ColorizeBitmapHQ(Properties.Resource_s.mc_home, mLevelColors[3]);
            mhomeImgCent = C2DGraphics.ColorizeBitmapHQ(Properties.Resource_s.mc_home, mFrameColor);
            // arrows
            mArrowU = C2DGraphics.ColorizeBitmapHQ(Properties.Resource_s.mc_uparrown, mArrowCol);
            mArrowD = C2DGraphics.RotateBmp90deg(mArrowU, 2);
        }
예제 #6
0
 protected override void UpdateBitmaps()
 {
     mTempPoint    = C2DGraphics.ColorizeBitmapHQ(global::UV_DLP_3D_Printer.Properties.Resources.mc_tpoint, mFrameColor);
     mTempPointSel = C2DGraphics.ColorizeBitmapHQ(global::UV_DLP_3D_Printer.Properties.Resources.mc_tpoint, mSelColor);
 }
예제 #7
0
 protected override void UpdateBitmaps()
 {
     mTempPoint    = C2DGraphics.ColorizeBitmapHQ(Properties.Resource_s.mc_tpoint, mFrameColor);
     mTempPointSel = C2DGraphics.ColorizeBitmapHQ(Properties.Resource_s.mc_tpoint, mSelColor);
 }