DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PicShow and background white screen

 
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
shkeeper
Member


Joined: 27 Jan 2005
Posts: 2

PostPosted: 27/01/05 08:44    Post subject: PicShow and background white screen Reply with quote

Hi, I`m from Ukraine.

I use PicShow component for my program 'Foto Show' and I have a problem when I change picture: if I show small picture (for examle 640x480), and after it I show large picture (for example 1024x2048) I see white screen between 1-st and 2-nd picture.
Also, I can see that white screen, when I change Strach properties.

And qustions: Can I disable this white screen??? And how?

Thanks and sorry for my bad English Smile
Back to top
View user's profile
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 412
Location: Tehran, Iran

PostPosted: 27/01/05 10:09    Post subject: Reply with quote

I guess you are using a very old version of the component, right?

If I'm wrong, please post here a sample code.
Back to top
View user's profile Send e-mail Visit poster's website
shkeeper
Member


Joined: 27 Jan 2005
Posts: 2

PostPosted: 27/01/05 10:31    Post subject: Reply with quote

I use 3.10 version.
There are simple (part of programm):

procedure TForm3.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
var i:byte;
begin
if form3.PicShow1.Busy or form1.CheckBox1.Checked then exit;
If Key = VK_ESCAPE then begin EndShow; exit; end;
If Key = VK_UP then if form1.ImgNum > 0 then
form1.ImgNum:=form1.ImgNum-1
else
begin exit; end;
If (Key = VK_DOWN)or(Key = VK_SPACE)or(Key = VK_RETURN) then
if form1.ImgNum < form2.ListBox1.Items.Count-1 then
form1.ImgNum:=form1.ImgNum+1
else
begin exit; end;
If Key = VK_Home then form1.ImgNum:=0;
If Key = VK_END then form1.ImgNum:=form2.ListBox1.Items.Count-1;

if PicShow1.Busy then PicShow1.Stop;
LoadImage(form1.ImgNum);
Form3.PicShow1.Execute;
if form1.CheckBox3.Checked then form3.PicShow1.Style := random(126)+1
else form3.PicShow1.Style := 0;
end;

................

procedure TForm3.PicShow1AfterNewFrame(Sender: TObject; Picture,
Screen: TBitmap);
begin
if form1.CheckBox6.Checked then
if (PicShow1.Picture.Height < PicShow1.Height) or (PicShow1.Picture.Width < PicShow1.Width) then
begin
PicShow1.Stretch := false;
end
else
PicShow1.Stretch := true;
end;

------------------------------------
I don`t Load picture while PicShow Executing, because I don`t know number of next image. So, first I Load picture and show it immediatly.
That is all.[/b]
Back to top
View user's profile
Display posts from previous:   
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB 2.0.6 © 2001, 2002 phpBB Group