Xbrowse or Ximage Load picture position not work

Xbrowse or Ximage Load picture position not work

Postby richard-service » Sat Jun 20, 2020 9:49 am

Hi
This is original pictures from DR Clinic.
Image

I use any read picture program and show picture position work fine below:
Image

I use Xbrowse cell include picture or XBrowse+Ximage show pictures.
These pictures position always Rotate. But original picture Front.
Image

if I save as BMP file style. it's work fine. But I can't call my DR customer do it.

Any solutions?
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: Xbrowse or Ximage Load picture position not work

Postby cnavarro » Sat Jun 20, 2020 10:36 am

Try with FW_TransformBitmap( hBitmap, [aCrop], [nZoom], [nRotate] )
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Xbrowse or Ximage Load picture position not work

Postby richard-service » Sat Jun 20, 2020 11:08 am

cnavarro wrote:Try with FW_TransformBitmap( hBitmap, [aCrop], [nZoom], [nRotate] )


This function mean save as BMP file?
If yes, I just want to read original file not save as file.
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: Xbrowse or Ximage Load picture position not work

Postby nageswaragunupudi » Sat Jun 20, 2020 4:17 pm

If you do not have any objection, can you send me one jpg file?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Xbrowse or Ximage Load picture position not work

Postby richard-service » Sat Jun 20, 2020 6:37 pm

nageswaragunupudi wrote:If you do not have any objection, can you send me one jpg file?

Yes, I already send to you. Please check your mail box.
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: Xbrowse or Ximage Load picture position not work

Postby nageswaragunupudi » Sun Jun 21, 2020 2:53 pm

Sorry, I did not receive.
Please send to
nageswaragunupudi [at] gmail [dot] com
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Xbrowse or Ximage Load picture position not work

Postby richard-service » Sun Jun 21, 2020 4:53 pm

nageswaragunupudi wrote:Sorry, I did not receive.
Please send to
nageswaragunupudi [at] gmail [dot] com


Please check your mail.
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: Xbrowse or Ximage Load picture position not work

Postby richard-service » Thu Jul 02, 2020 2:27 am

nageswaragunupudi wrote:Sorry, I did not receive.
Please send to
nageswaragunupudi [at] gmail [dot] com


Mr.Rao

Any news for it?
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: Xbrowse or Ximage Load picture position not work

Postby richard-service » Thu Jul 02, 2020 2:29 am

Hi

FW or [x]Harbour any function to know this picture is turning?
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: Xbrowse or Ximage Load picture position not work

Postby nageswaragunupudi » Thu Jul 02, 2020 3:23 am

I am unable to explain why all of Windows explorer, pain, photos are displaying the image upright whereas gdi+ and freeimage.dll are reading them rotated.

In the ximage01.prg
please try to replace
Code: Select all  Expand view  RUN
     :bChange       := { || oImage:Refresh() }
 


with
Code: Select all  Expand view  RUN
     :bChange       := { || oImage:Refresh(), oImage:Rotate( 45 ) }
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Xbrowse or Ximage Load picture position not work

Postby richard-service » Thu Jul 02, 2020 9:39 am

nageswaragunupudi wrote:I am unable to explain why all of Windows explorer, pain, photos are displaying the image upright whereas gdi+ and freeimage.dll are reading them rotated.

In the ximage01.prg
please try to replace
Code: Select all  Expand view  RUN
     :bChange       := { || oImage:Refresh() }
 


with
Code: Select all  Expand view  RUN
     :bChange       := { || oImage:Refresh(), oImage:Rotate( 45 ) }
 


Mr.Rao
Thanks a lot.
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 54 guests