본문 바로가기
반응형

Develop24

c# image crop 방법 1. image crop 을 위한 소스코드 Bitmap bitmap = new Bitmap("원본 이미지 path"); Rectangle rect = new Rectangle(30, 30, 100, 200); Bitmap cropBitmap = cropAtRect(bitmap, rect); cropBitmap.Save("새로운 위치.jpg", ImageFormat.Jpeg); public Bitmap cropAtRect(Bitmap orgImg, Rectangle sRect) { Rectangle destRect = new Rectangle(Point.Empty, sRect.Size); var cropImage = new Bitmap(destRect.Width, destRect.Height); using.. 2022. 2. 16.
c# image crop 프로그램 example 공유 - ImageCutter 1. image crop 프로그램 github https://github.com/battlemango/ImageCutter GitHub - battlemango/ImageCutter: easy image crop easy image crop. Contribute to battlemango/ImageCutter development by creating an account on GitHub. github.com 2. image crop 프로그램 사용법 - 오른쪽 listbox에 이미지가 들어있는 폴더를 drag해서 넣으면 이미지 list가 추가된다. - 마우스 클릭 또는 "A", "D" 키를 눌러 다음 이미지로 넘어갈 수 있다. - 사진을 drag 하면 한 부분이 crop되어 새로운 폴더에 저장된다. 3... 2022. 2. 16.
Vue와 robots.txt 1. robots.txt는 언제 필요한가? 네이버 및 구글에서 검색되기 위해 google search console등에 등록할 때 필요 2. vue에서 robots.txt 등록방법 일반 html 프로젝트의 경우 최상위 폴더에 robots.txt를 넣으면 되듯이 vue 산출물인 dist 폴더에도 robots.txt가 나오면 된다. 즉 public 폴더에 robots.txt파일을 넣으면 된다. 그리고 빌드 하면 dist 폴더 아래 robots.txt가 생성된걸 확인 할 수 있다. 다른 Post 보기 2022. 2. 16.
[C#] Drag and Drop 해서 폴더 안의 파일 리스트 보여주기 1. Drag and Drop을 이용하여 무엇을 만들것인가 listBox1에 폴더를 drag and drop 하면 폴더안의 파일 리스트를 listbox에 보여주고 label에는 drag and drop한 파일의 경로를 보여줌 2. Drag and Drop 하기 위한 listbox 속성 [도구상자]를 이용해 label과 listbox를 만들고 listbox의 속성값중 AllowDrop을 true로 변경한다 3. Drag and drop 전체 코드 listBox1_DragEnter : 파일을 drag해서 listbox안으로 들어갈때 호출되는 함수이며 마우스 effect를 바꿔 드래그 가능함을 보여주는 용도 listBox1_DragDrop : 파일을 drop 했을때 listbox에 파일 리스트를 보여주는용도 .. 2022. 2. 11.
반응형