'2020/11/04'에 해당되는 글 4건

  1. 2020.11.04 c# label rotate
  2. 2020.11.04 c# tooltip
  3. 2020.11.04 c# GIF picturebox 4
  4. 2020.11.04 컴퓨터...
Programming/c# & winform2020. 11. 4. 20:42

일일이 돌리려면 죽어 나겠는데 편하게 돌리는 법 없나?

 

[링크 : https://www.codeproject.com/Questions/1103814/How-to-rotate-a-label-by-keeping-autosize-in-Cshar]

[링크 : https://www.c-sharpcorner.com/forums/rotate-a-lable-in-c-sharp]

 

 

+ 2020.11.05

문자열이 얼마나 크게 그려지는지 pixel 단위로 돌려받는 함수.

[링크 : https://docs.microsoft.com/ko-kr/dotnet/api/system.drawing.graphics.measurestring?view=dotnet-plat-ext-3.1]

 

+ 2020.11.05

4분면 마다 다르게 설정해야 하는데 sin/cos 다시 공부하게 생겼다.. ㅠㅠ

아무튼 해당 코드 정상적으로 잘 작동하는 것 확인!

[링크 : https://stackoverflow.com/questions/1371943/c-sharp-vertical-label-in-a-windows-forms]

'Programming > c# & winform' 카테고리의 다른 글

C# UTC -> 지역시간  (0) 2020.11.05
c# gps(nmea parser)  (0) 2020.11.05
c# tooltip  (0) 2020.11.04
c# GIF picturebox  (4) 2020.11.04
C# 큰 이미지를 일부만 그리고 드래그 지원하기  (2) 2020.10.30
Posted by 구차니
Programming/c# & winform2020. 11. 4. 18:16

ToolTip.IsBalloon = true;

 

ToolTip.IsBalloon = false;

 

[링크 : https://stackoverflow.com/questions/9776077/how-can-i-add-a-hint-or-tooltip-to-a-label-in-c-sharp-winforms]

[링크 : http://www.gisdeveloper.co.kr/?p=2244]

Posted by 구차니
Programming/c# & winform2020. 11. 4. 17:51

ImageAnimator 클래스를 이용해서 비트맵과 프레임변경 핸들러를 추가하면

ImageAnimator.UpdateFrames()를 통해 다음 프레임을 원하는대로 그리는 듯

투명도 되려나?

 

using System;
using System.Drawing;
using System.Windows.Forms;
 
namespace BackgroundWorkerTest
{
    public partial class SandGlass : Form
    {
        public SandGlass()
        {
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterScreen;
        }
 
        Bitmap bit;
        protected override void OnLoad(EventArgs e)
        {
            bit = new Bitmap("sandglass.gif");
            ImageAnimator.Animate(bit, new EventHandler(this.OnFrameChanged));
            base.OnLoad(e);
        }
        protected override void OnPaint(PaintEventArgs e)
        {
            ImageAnimator.UpdateFrames();
            Graphics g = pictureBox1.CreateGraphics();
            g.DrawImage(this.bit, new Point(0, 0));
            base.OnPaint(e);
        }
        private void OnFrameChanged(object sender, EventArgs e)
        {
            this.Invalidate();
        }
    }
}

[링크 : https://blog.naver.com/goldrushing/130184365511]

[링크 : https://docs.microsoft.com/en-us/dotnet/api/system.drawing.imageanimator.animate?view=dotnet-plat-ext-3.1]

Posted by 구차니
개소리 왈왈/컴퓨터2020. 11. 4. 10:42

ryzen 2200g 으로 가는걸로 결정

i5-2500/HD7850에서 플루이드 돌리면 100W 먹고

모니터 20W 정도씩 먹었다고 적어놨는데 (그걸 두개는 켜놧었으니..)

 

2200g 로 4k 동영상 봐도 풀로드 걸어도 100W 미만으로 먹으니 전기측면에서는 괜찮을 듯

게다가 50W급 UHD 모니터만 사면 전기적으로도 dog 이득

 

어느정도 윤곽은 잡혀가는데

돈이 없네? ㅠㅠ

 

 

[링크 : http://www.ppomppu.co.kr/zboard/view.php?id=nas&no=31440&ismobile]

[링크 : https://www.clien.net/service/board/park/11772787]

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

zotac GT1030 2GB  (0) 2020.11.12
G4560  (0) 2020.11.11
라이젠 내장 그래픽 vs RX560  (0) 2020.11.03
오늘의 중고로운 평화장터  (0) 2020.11.02
모니터 고민중..  (0) 2020.11.02
Posted by 구차니