Win32 API 로 GIF 이미지 출력하기

dotri의 이미지

윈도우에서 Win32 API 로 코딩합니다.
BMP 이미지를 출력하는 것은 관련 API 가 제공되므로 쉽게 할 수 있으나.. GIF 이미지를 출력하려니 막막하네요. 외부 라이브러리를 사용해야하는지..또는 GIF 포맷을 직접 읽어야하는지..

가장 많이 쓰이는 방법은 어떤게 있나요?

ps) "출력"이라함은 모니터에 디스플레이하는 것을 말합니다. 프린터에 출력하는게 아니라;;

girneter의 이미지

dotri wrote:
윈도우에서 Win32 API 로 코딩합니다.
BMP 이미지를 출력하는 것은 관련 API 가 제공되므로 쉽게 할 수 있으나.. GIF 이미지를 출력하려니 막막하네요. 외부 라이브러리를 사용해야하는지..또는 GIF 포맷을 직접 읽어야하는지..

가장 많이 쓰이는 방법은 어떤게 있나요?

win2000 이상에서는 gdi+ 라이브러리를 사용할수 있습니다.
보통 이런 질문은 devpia 가시면 좀더 상세하게 얻으실수 있는데,
저도 거기서 도움 많이 받았거든요.

개념없는 초딩들은 좋은 말로 할때 DC나 웃대가서 놀아라. 응?

dotri의 이미지

GDI+ 에 대해 찾아보았는데요.. class 형태로 제공되는 C++ 라이브러리더군요. 저는 Win32 API 를 사용합니다. C 라이브러리는 없을까요?

Necromancer의 이미지

API로 이미지 출력하신다면

직접 읽어들이든, 라이브러리를 쓰든간에
BMP로 변환은 꼭 필요할겁니다.

Written By the Black Knight of Destruction

chadr의 이미지

sf.net에서 freeimage로 검색해 보세요..
http://sourceforge.net/projects/freeimage

gif뿐만 아니라 psd까지 로딩이 가능하고 렌더링이 가능한 라이브러리입니다.

사용법은.. 그다지 어렵지 않았던것 같네요.. 한두시간 삽질 하니까 사용할수 있게 되었던것 같네요. 예제도 들어있으니 예제하고 같이 보시면 더 쉽게 사용하실 수 있을 겁니다.

기본은 c언어로된 api를 제공하고 이를 랩핑한 클래스 라이브러리도 제공합니다.

-------------------------------------------------------------------------------
It's better to appear stupid and ask question than to be silent and remain stupid.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.