Photo problem

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
tolekd
Posts: 10
Joined: Mon Aug 23, 2010 8:02 am

Photo problem

Post by tolekd »

Hello everybody

I have a problem with review of photos. I am trying to do that but for some of photos my program doesn't work. Instructions for review these photos are below:
MainForm.TextBoxPhoto.Value := alltrim(PRICE->PHOTO)
MainForm.ImagePhoto.Picture := IF( File( alltrim(PRICE->PHOTO) ), alltrim(PRICE->PHOTO), "res/empty.bmp" )

PRICE->PHOTO contains full path of photo.
Samples of "good" and "bad" photos are attached.
Attachments
good.jpg
good.jpg (81.41 KiB) Viewed 3220 times
bad.jpg
bad.jpg (75.55 KiB) Viewed 3220 times
Tolek Domanski
Poland
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Photo problem

Post by Rathinagiri »

Sorry Tolek Domanski, I could not understand your problem. :(
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
tolekd
Posts: 10
Joined: Mon Aug 23, 2010 8:02 am

Re: Photo problem

Post by tolekd »

OK - maybe I wrote enough clearly :(

Problem is that control Image doesn't show all images .For instance picture good.jpg is shown correctly but picture bad.jpg isn't shown in general . I don't understand why because these picture are similar regarding pixels and size and may be reviewed in other graphic applications.
Tolek Domanski
Poland
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Photo problem

Post by Rathinagiri »

Now I understand. I would try to see your pictures and other pics too.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Czarny_Pijar
Posts: 172
Joined: Thu Mar 18, 2010 11:31 pm
Location: 19.2341 E 50.2267 N

Re: Photo problem

Post by Czarny_Pijar »

Here is what I saw in my browser. Maybe bad is really bad? (WinXp+IE8)
Attachments
good_bad.PNG
good_bad.PNG (84.61 KiB) Viewed 3184 times
Post Reply