문제 설명
프리파스칼에서 기능적 그래픽을 얻으려면 어떻게 해야 합니까? (How do I get functional graphics from freepascal?)
문서 전체를 살펴보았지만 그래픽 주제에 대해 포괄적인 내용은 없습니다. 나는 그것이 가능하다는 것을 안다. 기능적 그래픽을 포함하는 프리파스칼 프로젝트를 보았지만 효과를 직접 복제할 수는 없었습니다.
기본적으로 충분할 것입니다. 라인, 폴리곤, 아마도 텍스트. 그 이상의 기능(png 지원, 그라디언트, 크기 조정 가능한 창 등)은 높이 평가되지만 불필요합니다. 이 질문의 목적은 주어진 목적에 가장 적합한 라이브러리를 선택하는 것이 아니라 실행 가능하고 테스트 가능한 출발점을 찾는 것입니다.
도움이된다면 Lazarus를 사용하고 있으며 Pascal에 대한 약간의 경험이 있습니다. 전체적으로는 그렇지만 2007년부터 그것을 멀리하고 있습니다.
참조 솔루션
방법 1:
simple graphics starting point
- Canvas Drawing: https://wiki.lazarus.freepascal.org/Drawing_with_canvas
- Using BGRA (open source drawing lib): https://wiki.lazarus.freepascal.org/BGRABitmap
- Library list (not complete but a good start):) https://wiki.lazarus.freepascal.org/Graphics_libraries
Also, I'd like to point out that a lot can be found by searching the fpc wiki, or by visiting the forums, Here's the "Graphics" forum board, https://forum.lazarus.freepascal.org/index.php/board,39.0.html
(by BooledOffStage、Highball)