분류 전체보기
-
WritePixelsC#/기초 2021. 12. 24. 12:15
public void WritePixels (System.Windows.Int32Rect sourceRect, Array pixels, int stride, int offset); Parameters sourceRectInt32Rect The rectangle of the WriteableBitmap to update. pixelsArray The pixel array used to update the bitmap. strideInt32 The stride of the update region in pixels. offsetInt32 The input buffer offset. //The stride value is calculated as the number of bytes per "pixel line..
-
-
[Delphi]단축키Delphi/기초 2021. 12. 22. 17:21
코드 에디터 단축키 (비디오 보기) 아래 단축키 중 혹시 사용하고 있지 않는 것이 있는 지 보고 이제부터라도 사용해보자. F12 (폼 디자이너와 코드 에디터 전환): 매주 자주하는 작업이다. 즉, 단축키를 쓰면 하루에도 엄청난 시간이 절약된다. Ctrl+Space와 방향키 (키워드를 빠르고 정확하게 입력하기): 키워드 앞글자 몇 자만 타이핑하고 Ctrl+Space를 사용하면 해당 키워드 목록이 표시된다. 이때, 방향키를 이용하여 원하는 키워드를 선택하면 자동 완성된다. Ctrl+왼쪽 방향키 (현재 줄에서 코드의 가장 앞쪽으로 커서를 이동) Ctrl+Shift+v (지역 변수 선언): 일단 변수명 부터 타이핑한다. 그리고 나서 Ctrl+Shift+v를 사용하면, 변수 선언을 바로 할 수 있다. Ctrl+y..
-
[C#]WPF Serial PortC#/기초 2021. 12. 21. 16:10
연결 후 received함수를 스레드로. 연결까지 스레드로 넘기면 나중에 다시 연결 시도할때 if(!serial.Isopen) 을 걸어도 진입하고 충돌을 일으킴. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Me..
-
-
윈도우10 가상디스크 멀티부팅기타자료 2021. 12. 18. 22:58
WINDOWS 10 PRO 에서만 가능 1. 가상 하드 디스크 생성 1.1 원도우즈 디스크 관리자 실행 1.2 동작 VHD 만들기 선택 # 생성 하고자 하는 위치,파일명, 크기, 유형, 포맷 등을선택 # 디스크 크기 2TB (늘릴 수 있는 최대크기) # 동적 확장 # 디스크 관리자에서 아래로 내리면 만들어진 디스크 확인. # 디스크 초기화 (마스터부트 MBR) # 디스크 포맷 (NTFS) 2. ROMBIOS 에서 USB Boot 옵션 활성화 2.1 CMD 창이 나타 나면 생성한 VHD 가 어느 드라이브에 있는지 찾습니다. 2.2 list volume 명령으로 가상디스크파일 위치한 볼륨찾기 2.3 가상 하드디스크 선택 DISKPART> sel vdi file=”생성한 가상디스크 경로 및 파일명.vhd” E..
-
[C#] ??, ?. 연산자 ( Nullable) Null 널C#/기초 2021. 12. 16. 15:34
연산자 ?. 및 ?[]피연산자가 null 이 아닌 것으로 평가되었을 때만 멤버 액세스 ?. 또는 요소 액세스 ?[] 연산을 피연산자에게 적용하며, 그렇지 않으면 null 을 반환한다.a가 null로 평가되면 a?.x 또는 a?[x]의 결과는 null이다.a가 null이 아닌 것으로 평가되면 a?.x 또는 a?[x]의 결과는 각각 a.x또는 a[x]의 결과와 같다.Null 조건부 연산자는 단락 연산자이다. 즉 조건부 멤버나 요소 액세스 작업의 한 체인의 작업에서 null을 반환하면 나머지 체인은 실행되지 않는다. 다음 예제에서 A가 null로 평가되면 B가 평가되지 않고, A또는 B가 null로 평가되면 C가 평가되지 않는다.A?.B?.Do(C); ? 기본 처리 방법object tmp = {조건} ? {참..