--- title: "Displaying TI Graphics Files" type: "article" slug: "displaying-ti-graphics-files" url: "http://localhost/article/displaying-ti-graphics-files/" markdown_url: "http://localhost/article/displaying-ti-graphics-files.md" published_at: "2025-12-18T14:51:17+00:00" modified_at: "2026-06-21T23:24:13+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "[Jeff Kuhlmann has written an interesting program to display a TI-Artist instance file on the QL. I don't know how many have been wanting to do this, but here it is. On the disk that Jeff sent me, were many example files. If you are interested in this, I can provide a disk with all…" category: - name: "QL Hacker's Journal" slug: "ql-hackers-journal" taxonomy: "category" url: "http://localhost/category/periodicals/ql-hackers-journal/" post_tag: - name: "C (programming language)" slug: "c-programming-language" taxonomy: "post_tag" url: "http://localhost/tag/c-programming-language/" - name: "Full Text" slug: "fulltext" taxonomy: "post_tag" url: "http://localhost/tag/fulltext/" - name: "QL" slug: "ql" taxonomy: "post_tag" url: "http://localhost/tag/ql/" model: - name: "Sinclair QL" slug: "sinclair-ql" taxonomy: "model" url: "http://localhost/model/sinclair-ql/" indiv: - name: "Jeffrey Kuhlmann" slug: "jeffrey-kuhlmann" taxonomy: "indiv" url: "http://localhost/indiv/jeffrey-kuhlmann/" publication_r: id: 33686 title: "QL Hacker’s Journal" type: "periodical" url: "http://localhost/periodical/ql-hackers-journal/" authors_r: - name: "Jeffrey Kuhlmann" slug: "jeffrey-kuhlmann" taxonomy: "indiv" url: "http://localhost/indiv/jeffrey-kuhlmann/" issue: "19" issues_articles: - id: 61555 title: "QL Hacker’s Journal 19" type: "issue" url: "http://localhost/issue/ql-hackers-journal-19/" pubdate: "November 1994" archive_link: true --- # Displaying TI Graphics Files [[Jeff Kuhlmann](http://localhost/indiv/jeffrey-kuhlmann/) has written an interesting program to display a TI-Artist instance file on the QL. I don’t know how many have been wanting to do this, but here it is. On the disk that Jeff sent me, were many example files. If you are interested in this, I can provide a disk with all of the sample files. – ED ] ``` /* SHOWTIA_C - a c68 file for the QL to display */ /* TI-ARTIST instances. This is NOT the proper way */ /* to program in that I write directly to the screen */ /* This is because: a) it's a LOT faster and */ /* b) I couldn't figure out how to */ /* scale the window properly */ /* December 10, 1993 Ver 1.0 Jeffrey A. Kuhlmann */ #include "qlib.h" /* because I use QDOS calls */ #include "stdio.h" /* because I open files */ #include "string.h" /* because I use string functions */ #include "stdlib.h" /* because I use atoi() function */ char infn[81]; /* input file name */ char str1[81]; /* input string from file */ FILE *inf,*outf; /* files to open */ int arry[20]; /* utility array */ char rows[81]; /* row string */ char cols[81]; /* columns string */ int ctr,end,delim,col,row; int rctr,cctr,cptr; int chardat[8],chrptr; long qres; char *scrn; /* pointer to absolute screen memory */ char *_endmsg=NULL; /* omit end message */ main(argc,argv) int argc; char *argv[]; { if(argc<2) { puts("TI-ARTIST VIEWER FOR QDOS"); puts("Press any key when done"); puts("viewing picture..."); puts("TI-Artist file name? (w/o _I)"); gets(infn); /* get filename from user */ } else strcpy(infn,argv[1]); strcat(infn,"_I"); /* add necessary _i to name */ inf=fopen(infn,"r"); /* try to open file */ /* this function forces 4 color, monitor mode */ mt_dmode("4","0"); /* open whole screen for access */ outf=fopen("con_512x256a0x0_32","w"); qres=fgetchid(outf); if (!inf) {printf("Can't open %s",infn); exit(7);} /* error opening file */ sd_clear(qres,-1); /* clear screen */ /* for(ctr=0;ctr<16;ctr++)puts(""); */ /* needed only when end message */ /* enabled */ fgets(str1,81,inf);/* read # of rows, cols needed */ rowcol(); for(rctr=0;rctr