분류 전체보기
-
-
[C#] IEnumerable vs ListC#/기초 2022. 6. 27. 15:07
C# IEnumerable vs List and Array When you should use one over the other and what I learned trying to work this out… TL;DR It depends! As is often the case with programming. IEnumerables delay execution of the query until the code is looped over or a value type is extracted. Basically IEnumerables have a method to get the next item in the collection, so they look at items “one at a time”, they do..
-
[C#]배열 초기화C#/기초 2022. 6. 15. 10:02
double[] array= Enumerable.Repeat(0, length).ToArray(); 자료형만 맞춰주면 되고 '0'에 초기화 하고 싶은 숫자. length 는 할당하고 싶은 크기. https://terrorjang.tistory.com/99 [C#] 배열 0으로 초기화(Enumerable.Repeat) 배열을 선언하면서 0또는 같은 수로 초기화 하고 싶다. 그러나 생성자에는 없는듯 하여 알아보았다. 한글로 검색하면 나오질 않더이다. 구글 검색 : Array Zero Initialize 참고 : http://stackoverflow.com/que terrorjang.tistory.com
-
[Blazor] Blazor Development Docs (feat.Tangy)C#/Blazor 2022. 5. 26. 17:20
Fetch data Bind Prop 와 링크 차이점 는 클릭시 클릭을 했다는 음영표시가 보이는데 는 그렇지 않음. 는 클릭시 페이지를 로드하되 클릭되어졌다는 음영표시없음. Lecture 14 hot reload 안될 때 VS 재실행. Lecture 17 razor component page @데이터 바인딩 시 (대소문자 구분함) @product.Name // 오류 -> @Product.name Tangy_Models.LearnBlazorModels.Demo_Product Product = new() {}; @bind-value="@Product.Price" // 데이터 바인딩 @bind-value:event="oninput" // 바인딩할 이벤트 Lecture 21 textbox selectAll St..
-
[C#]Canvas to BitmapImageC#/WPF_예제소스 2022. 5. 24. 11:34
public static class SBA { public static WriteableBitmap SaveAsWriteableBitmap(Canvas surface) { if (surface == null) return null; // Save current canvas transform Transform transform = surface.LayoutTransform; // reset current transform (in case it is scaled or rotated) surface.LayoutTransform = null; // Get the size of canvas Size size = new Size(surface.ActualWidth, surface.ActualHeight); // M..
-
[C#] 인체감지 뷰어프로젝트 2022. 5. 11. 11:58
#비공개 파일 https://dlsenfl.tistory.com/entry/C%EC%9D%B8%EC%B2%B4%EA%B0%90%EC%A7%80-%ED%8C%8C%EC%9D%BC [C#]인체감지 파일 :: dlsenfl dlsenfl.tistory.com HumanDetector Viewer S/W 1.개발환경 Target Program: Windows Application Develop Develop Tool: Visual Studio 2022 .net Framwork 4.0이상 Programming Language: C# 16x16 IRSensor 온도센서 * 4ea Thermopile Sensor HTPA 16x16dR2 Description 해상도 16-pixcel x 16-pixcel NETD 1..
-
[C#] 열화상 이미지에 온도데이터 표출C#/WPF_예제소스 2022. 4. 26. 17:15
var visual = new DrawingVisual(); using (DrawingContext drawingContext = visual.RenderOpen()) { //drawingContext.DrawImage(bitmapSource, new Rect(0, 0, 256, 256)); drawingContext.DrawImage(wb, new Rect(0, 0, 600, 600)); //wb 비트맵 인스턴스 //ex) WriteableBitmap wb = new WriteableBitmap(iWx, iHy, 96, 96, PixelFormats.Bgra32, null); for (y = 0; y < iHy; y++) { for (x = 0; x < iWx; x++) { //string sTempD..