Home > Back-end >  Write a kind like WINDOWS 7 WINDOWS picture viewer? (they all give a train of thought.)
Write a kind like WINDOWS 7 WINDOWS picture viewer? (they all give a train of thought.)

Time:09-18

I've always wanted to write a Windows photo viewer, but has been unable to realize,

Use a control image or paintbox, but there are defects,

With image exists when used to change the window resize, photo shows followed narrow, through calculating the window size, to change the image width, height, left, top, change the window size response lag phenomenon would appear,

Use PAINTBOX, onpaint to display images, can appear the phenomenon of slow,


So I've been trapped by the question around, Windows 7, is how to implement,

CodePudding user response:

SEEACD figure is still relatively good, it through the contraction figure image, to speed up, reads the image of D images, modify the size is more CARDS, suggested after computing size first, then read the pictures, read or contraction, again into the original image,

CodePudding user response:

With ImageEn, easily done,

CodePudding user response:

This thing have what difficulty, put a TPanel in the middle of the window, adjust good distance around the window, and then set Anchors attribute, the up and down or so is set to true, put a TImage1 in TPanel, Align set to alClient, Center is set to true, Proportional set to true, Stretch is set to true, the Picture in a graph to come in, other attributes are the default, then run, don't have to write one line of code,
  • Related