<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Can GetImage get the whole screen?' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Can GetImage get the whole screen?' posted on the 'Pascal' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 13:30:35 -0700</pubDate>
    <lastBuildDate>Wed, 19 Jun 2013 13:30:35 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Can GetImage get the whole screen?</title>
      <link>http://www.programmersheaven.com/mb/pasprog/430560/430560/can-getimage-get-the-whole-screen/</link>
      <description>Is there a way to capture the whole screen using GetImage?&lt;br /&gt;
Right now I can only use GetImage to capture a 350 X 350 &lt;br /&gt;
area. If I try to capture 400 X 400 then the compuer&lt;br /&gt;
crashes. My compiler directive is: {$M 20384,0,640360}.&lt;br /&gt;
Is there a way to make sure I can access extended memory?&lt;br /&gt;
Thanx.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/430560/430560/can-getimage-get-the-whole-screen/</guid>
      <pubDate>Sat, 08 Dec 2012 13:20:57 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: Can GetImage get the whole screen?</title>
      <link>http://www.programmersheaven.com/mb/pasprog/430560/430568/re-can-getimage-get-the-whole-screen/#430568</link>
      <description>Are you using Turbo Pascal 7 or anyone else?&lt;br /&gt;
GetImage is not made for more than 64 kB. I have testing making BMP files in Paint Shop Pro and 350x350x16 colors results in 60 kB but 400x400x16 colors in 78 kB&lt;br /&gt;
If you are using Windows it would be good to download Free Pascal. You can use PrtScr to save any graphics to other programs.&lt;br /&gt;
Staying with TP you should save the graphics in files of type BMP with GetPixel&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/430560/430568/re-can-getimage-get-the-whole-screen/#430568</guid>
      <pubDate>Sun, 09 Dec 2012 08:45:04 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>To Pelle-48 re: GetImage etc.</title>
      <link>http://www.programmersheaven.com/mb/pasprog/430560/430583/to-pelle-48-re-getimage-etc/#430583</link>
      <description>Thanks, Pelle-48. Yes, I'm using TP7 but I'm interested in Free Pascal though I don't know much about it. Can you do more with it? I've had success accessing extended memory from my programs but you're right, GetImage itself is limited. I'll just use PrtScr for now but I sure would like to learn how to save a bmp file from my programs when I can get less busy. Do you know where I can get code for that? My current project will have a gif reader. Thanks again and Merry Christmas.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/430560/430583/to-pelle-48-re-getimage-etc/#430583</guid>
      <pubDate>Mon, 10 Dec 2012 12:11:48 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>To Pelle-48 re: GetImage etc.</title>
      <link>http://www.programmersheaven.com/mb/pasprog/430560/430584/to-pelle-48-re-getimage-etc/#430584</link>
      <description>Thanks, Pelle-48. Yes, I'm using TP7 but I'm interested in Free Pascal though I don't know much about it. Can you do more with it? I've had success accessing extended memory from my programs but you're right, GetImage itself is limited. I'll just use PrtScr for now but I sure would like to learn how to save a bmp file from my programs when I can get less busy. Do you know where I can get code for that? My current project will have a gif reader. Thanks again and Merry Christmas.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/430560/430584/to-pelle-48-re-getimage-etc/#430584</guid>
      <pubDate>Mon, 10 Dec 2012 12:16:17 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>To Pelle-48 re: GetImage etc.</title>
      <link>http://www.programmersheaven.com/mb/pasprog/430560/430585/to-pelle-48-re-getimage-etc/#430585</link>
      <description>Thanks, Pelle-48. Yes, I'm using TP7 but I'm interested in Free Pascal though I don't know much about it. Can you do more with it? I've had success accessing extended memory from my programs but you're right, GetImage itself is limited. I'll just use PrtScr for now but I sure would like to learn how to save a bmp file from my programs when I can get less busy. Do you know where I can get code for that? My current project will have a gif reader. Thanks again and Merry Christmas.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/430560/430585/to-pelle-48-re-getimage-etc/#430585</guid>
      <pubDate>Mon, 10 Dec 2012 12:18:10 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: To Pelle-48 re: GetImage etc.</title>
      <link>http://www.programmersheaven.com/mb/pasprog/430560/430600/re-to-pelle-48-re-getimage-etc/#430600</link>
      <description>Hello and Merry Xmas to you too!&lt;br /&gt;
I will show you saving of an image to a BMP-file.&lt;br /&gt;
This is an image in size 1024x768 with 16 colors from TP7.&lt;br /&gt;
&lt;br /&gt;
procedure bmp1024;&lt;br /&gt;
var  x,y,w1,w2,w3: word;&lt;br /&gt;
     col,r,r1,g,g1,b,b1: byte;&lt;br /&gt;
     c1,c2,c3,c4,c5,c6,c7,c8: string;&lt;br /&gt;
     f: text;&lt;br /&gt;
&lt;br /&gt;
begin&lt;br /&gt;
  assign(f,'graf01.bmp');&lt;br /&gt;
  rewrite(f);&lt;br /&gt;
    c1:= chr($42) + chr($4d) + chr($36) + chr($0) ;&lt;br /&gt;
    c1:= c1 + chr($24) + chr($0) + chr($0) + chr($0);&lt;br /&gt;
    c1:= c1 + chr($0) + chr($0) + chr($36) + chr($0);&lt;br /&gt;
    c1:= c1 + chr($0) + chr($0) + chr($28) + chr($0) ;&lt;br /&gt;
&lt;br /&gt;
    c2:= chr($0) + chr($0) + chr($0) + chr($4) ;&lt;br /&gt;
    c2:= c2 + chr($0) + chr($0) + chr($0) + chr($3) ;&lt;br /&gt;
    c2:= c2 + chr($0) + chr($0) + chr($1) + chr($0) ;&lt;br /&gt;
    c2:= c2 + chr($18) + chr($0) + chr($0) + chr($0) ;&lt;br /&gt;
&lt;br /&gt;
    c3:= chr($0) + chr($0) + chr($0) + chr($0) ;&lt;br /&gt;
    c3:= c3 + chr($24) + chr($0) + chr($12) + chr($0b) ;&lt;br /&gt;
    c3:= c3 + chr($0) + chr($0) + chr($12) + chr($b) ;&lt;br /&gt;
    c3:= c3 + chr($0) + chr($0) + chr($0) + chr($0) ;&lt;br /&gt;
&lt;br /&gt;
    c4:= chr($0) + chr($0) + chr($0) + chr($0) + chr($0) + chr($0) ;&lt;br /&gt;
    c5:=c1 + c2 + c3 + c4;&lt;br /&gt;
    write(f,c5);&lt;br /&gt;
    For y:=0 to MaxY do&lt;br /&gt;
    begin&lt;br /&gt;
      For x:=0 to MaxX do&lt;br /&gt;
      begin&lt;br /&gt;
         col:=GetPixel(x,y);&lt;br /&gt;
         case col of&lt;br /&gt;
         15: begin&lt;br /&gt;
              r:=0;&lt;br /&gt;
              g:=0;&lt;br /&gt;
              b:=0;&lt;br /&gt;
             end;&lt;br /&gt;
         10: begin&lt;br /&gt;
              r:=0;&lt;br /&gt;
              g:=255;&lt;br /&gt;
              b:=0;&lt;br /&gt;
             end;&lt;br /&gt;
         else begin&lt;br /&gt;
                 r:=255;&lt;br /&gt;
                 g:=255;&lt;br /&gt;
                 b:=255;&lt;br /&gt;
               end;&lt;br /&gt;
         end;&lt;br /&gt;
&lt;br /&gt;
         write(f,chr(b));&lt;br /&gt;
         write(f,chr(g));&lt;br /&gt;
         write(f,chr(r));&lt;br /&gt;
      end;&lt;br /&gt;
    end;&lt;br /&gt;
    close(f);&lt;br /&gt;
  end;&lt;br /&gt;
&lt;br /&gt;
The start of the BMP is depending of the size of the image. I have been using a program called fileview.exe to read files and find out. Any hexview reader can do it. What image size can you have with TP7? Graphic cards made today are not very good. The best card I have found was Tseng Lab 6000 giving 1280x1024x16 colors&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/430560/430600/re-to-pelle-48-re-getimage-etc/#430600</guid>
      <pubDate>Tue, 11 Dec 2012 06:04:13 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: To Pelle-48 re: Please read!</title>
      <link>http://www.programmersheaven.com/mb/pasprog/430560/430605/re-to-pelle-48-re-please-read/#430605</link>
      <description>Sorry about the previous multiple postings; The problem is fixed now. I'm afraid that in the future that I'm going to be quite a pest on this nice forum. I know just enough about programming to be dangerous but now that I'm getting back into it I really like it. Anyway, thanks for the code about saving a bmp file. Will check it out. There's so much to learn!&lt;br /&gt;
&lt;br /&gt;
Say, I know where you guys can really help me out: My tp7 package includes a supurb source code for a unit that's called editors.pas (editors.tpu) but I can't find or figure out the 'launch' point in that code. I really need this unit for my current project but I just don't know what procedure in it to call from my program. This unit is a very nice text editor.&lt;br /&gt;
&lt;br /&gt;
I'm familiar with pointers, arrays, objects, units, graphics and stuff but I could really use some advice and help here. Do you want me to post this code? I haven't done much with records and such. Thanks Pelle-48 and… Help! Will try to respond quicker in the future. I promise! I really need and appreciate any help. I'm really excited about my program, which will be a completely free program that will nontheless give me some nice advertising for my other stuff.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/430560/430605/re-to-pelle-48-re-please-read/#430605</guid>
      <pubDate>Tue, 11 Dec 2012 17:18:58 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: To Pelle-48 re: Please read!</title>
      <link>http://www.programmersheaven.com/mb/pasprog/430560/430613/re-to-pelle-48-re-please-read/#430613</link>
      <description>Hello you don't have to be quick in this forum- nobody else is.&lt;br /&gt;
Yes I have the files editors.pas and editors.tpu but I don't know anything about them. If you run graphics with TP7 what resolution can you get?&lt;br /&gt;
640x480 (VGA), 800x600, 1024x768 or 1280x1024?&lt;br /&gt;
I could send a BMP saver for the right one (the first I have shown is only for 1024x768)&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/430560/430613/re-to-pelle-48-re-please-read/#430613</guid>
      <pubDate>Wed, 12 Dec 2012 00:07:59 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Thanks Pelle-48: Problem solved</title>
      <link>http://www.programmersheaven.com/mb/pasprog/430560/430621/thanks-pelle-48-problem-solved/#430621</link>
      <description>Thanks Pelle-48. I solved my problem so I'll have the simple editor that I need. My solution wasn't elegant but it'll get the job done. I simply looked for a program that used the editors.tpu and then just modified that program. It works fine now. I'm a babe in the woods when it comes to object records though I've been doing some reading on that subject. When I finish the program that I'm working on I'll send ya a copy if I can and if you want one. It should be a modest but interesting program. Thanks again and best wishes.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/430560/430621/thanks-pelle-48-problem-solved/#430621</guid>
      <pubDate>Wed, 12 Dec 2012 16:09:18 -0700</pubDate>
      <category>Pascal</category>
    </item>
    <item>
      <title>Re: Big news</title>
      <link>http://www.programmersheaven.com/mb/pasprog/430560/430631/re-big-news/#430631</link>
      <description>Pelle-48, the more that I think about it, the more I think I'd like my program to display its images from internal source code rather than by having the gif or bmp images residing in the same directory as the program. This would have numerous advantages, including the fact that I would no longer need a viewer; I could just use the Graph unit. As you have truly said before, GetImage/PutImage are limited but the whole process of displaying a bmp could be done pixel by pixel.&lt;br /&gt;
&lt;br /&gt;
I've have some good results accessing extended memory so it could be done fast. I recall the code that you posted about bmps and so I'm going to make it a priority to give this some thought. I have a million things to do (fortunately) but this will be at the top of the list. I hope you'll forgive me if I again call upon your help in the future but if so, I will certainly mention your name in the acknowledgement section of my program. PS: I found a program called tvdemo.pas in my TP7 package and it's an even better editor than the one I was going to use! &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/pasprog/430560/430631/re-big-news/#430631</guid>
      <pubDate>Thu, 13 Dec 2012 08:16:06 -0700</pubDate>
      <category>Pascal</category>
    </item>
  </channel>
</rss>