コード例 #1
0
        public override void Render(float timePassed)
        {
            base.Render(timePassed);
            //RenderDlg(timePassed);

            if (null == coverArtTexture)
            {
                return;
            }

            if (null != imgCoverArt)
            {
                float x = (float)imgCoverArt.XPosition;
                float y = (float)imgCoverArt.YPosition;
                int   width;
                int   height;
                GUIGraphicsContext.Correct(ref x, ref y);

                int maxWidth  = imgCoverArt.Width;
                int maxHeight = imgCoverArt.Height;
                GUIGraphicsContext.GetOutputRect(coverArtTextureWidth, coverArtTextureHeight, maxWidth, maxHeight, out width,
                                                 out height);

                GUIFontManager.Present();
                Util.Picture.RenderImage(coverArtTexture, (int)x, (int)y, width, height, coverArtTextureWidth,
                                         coverArtTextureHeight, 0, 0, true);
            }
        }
コード例 #2
0
        public override void Render(float timePassed)
        {
            base.Render(timePassed);
            if (null == m_pTexture)
            {
                return;
            }
            float x = imgPicture.XPosition;
            float y = imgPicture.YPosition;
            int   width;
            int   height;

            GUIGraphicsContext.Correct(ref x, ref y);

            GUIFontManager.Present();
            GUIGraphicsContext.GetOutputRect(m_iTextureWidth, m_iTextureHeight, imgPicture.Width, imgPicture.Height, out width,
                                             out height);
            Util.Picture.RenderImage(m_pTexture, (int)x, (int)y, width, height, m_iTextureWidth, m_iTextureHeight, 0, 0,
                                     true);
        }