FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Xbrowse or Ximage Load picture position not work
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Xbrowse or Ximage Load picture position not work
Posted: Sat Jun 20, 2020 09:49 AM
Hi
This is original pictures from DR Clinic.


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


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


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 (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Xbrowse or Ximage Load picture position not work
Posted: 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
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: Xbrowse or Ximage Load picture position not work
Posted: 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 (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Xbrowse or Ximage Load picture position not work
Posted: Sat Jun 20, 2020 04:17 PM

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

Regards



G. N. Rao.

Hyderabad, India
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: Xbrowse or Ximage Load picture position not work
Posted: Sat Jun 20, 2020 06: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 (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Xbrowse or Ximage Load picture position not work
Posted: Sun Jun 21, 2020 02:53 PM

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

Regards



G. N. Rao.

Hyderabad, India
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: Xbrowse or Ximage Load picture position not work
Posted: Sun Jun 21, 2020 04: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 (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: Xbrowse or Ximage Load picture position not work
Posted: Thu Jul 02, 2020 02: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 (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: Xbrowse or Ximage Load picture position not work
Posted: Thu Jul 02, 2020 02:29 AM

Hi

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

Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Xbrowse or Ximage Load picture position not work
Posted: Thu Jul 02, 2020 03: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 (fw): Select all Collapse
      :bChange       := { || oImage:Refresh() }


with
Code (fw): Select all Collapse
      :bChange       := { || oImage:Refresh(), oImage:Rotate( 45 ) }
Regards



G. N. Rao.

Hyderabad, India
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: Xbrowse or Ximage Load picture position not work
Posted: Thu Jul 02, 2020 09: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 (fw): Select all Collapse
      :bChange       := { || oImage:Refresh() }


with
Code (fw): Select all Collapse
      :bChange       := { || oImage:Refresh(), oImage:Rotate( 45 ) }


Mr.Rao
Thanks a lot.
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit

Continue the discussion