Xbrowse or Ximage Load picture position not work

Post Reply
User avatar
richard-service
Posts: 583
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan
Contact:

Xbrowse or Ximage Load picture position not work

Post by richard-service »

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?
Regards,

Richard

Harbour 3.2.0dev (r1904111533)/xHarbour 1.2.3 Intl. (SimpLex) (Build 20180818) => Borland C++ v7.4
xHarbour 0.99.71 (SimpLex) => Borland C++ v5.5
MySQL v5.7 /ADS v12
Harbour 3.2.0dev (r1603181642) => Borland C++ v7.4 64bit
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Xbrowse or Ximage Load picture position not work

Post by cnavarro »

Try with FW_TransformBitmap( hBitmap, [aCrop], [nZoom], [nRotate] )
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
richard-service
Posts: 583
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan
Contact:

Re: Xbrowse or Ximage Load picture position not work

Post by richard-service »

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.
Regards,

Richard

Harbour 3.2.0dev (r1904111533)/xHarbour 1.2.3 Intl. (SimpLex) (Build 20180818) => Borland C++ v7.4
xHarbour 0.99.71 (SimpLex) => Borland C++ v5.5
MySQL v5.7 /ADS v12
Harbour 3.2.0dev (r1603181642) => Borland C++ v7.4 64bit
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Xbrowse or Ximage Load picture position not work

Post by nageswaragunupudi »

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

G. N. Rao.
Hyderabad, India
User avatar
richard-service
Posts: 583
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan
Contact:

Re: Xbrowse or Ximage Load picture position not work

Post by richard-service »

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.
Regards,

Richard

Harbour 3.2.0dev (r1904111533)/xHarbour 1.2.3 Intl. (SimpLex) (Build 20180818) => Borland C++ v7.4
xHarbour 0.99.71 (SimpLex) => Borland C++ v5.5
MySQL v5.7 /ADS v12
Harbour 3.2.0dev (r1603181642) => Borland C++ v7.4 64bit
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Xbrowse or Ximage Load picture position not work

Post by nageswaragunupudi »

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

G. N. Rao.
Hyderabad, India
User avatar
richard-service
Posts: 583
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan
Contact:

Re: Xbrowse or Ximage Load picture position not work

Post by richard-service »

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

Richard

Harbour 3.2.0dev (r1904111533)/xHarbour 1.2.3 Intl. (SimpLex) (Build 20180818) => Borland C++ v7.4
xHarbour 0.99.71 (SimpLex) => Borland C++ v5.5
MySQL v5.7 /ADS v12
Harbour 3.2.0dev (r1603181642) => Borland C++ v7.4 64bit
User avatar
richard-service
Posts: 583
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan
Contact:

Re: Xbrowse or Ximage Load picture position not work

Post by richard-service »

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

Any news for it?
Regards,

Richard

Harbour 3.2.0dev (r1904111533)/xHarbour 1.2.3 Intl. (SimpLex) (Build 20180818) => Borland C++ v7.4
xHarbour 0.99.71 (SimpLex) => Borland C++ v5.5
MySQL v5.7 /ADS v12
Harbour 3.2.0dev (r1603181642) => Borland C++ v7.4 64bit
User avatar
richard-service
Posts: 583
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan
Contact:

Re: Xbrowse or Ximage Load picture position not work

Post by richard-service »

Hi

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

Richard

Harbour 3.2.0dev (r1904111533)/xHarbour 1.2.3 Intl. (SimpLex) (Build 20180818) => Borland C++ v7.4
xHarbour 0.99.71 (SimpLex) => Borland C++ v5.5
MySQL v5.7 /ADS v12
Harbour 3.2.0dev (r1603181642) => Borland C++ v7.4 64bit
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Xbrowse or Ximage Load picture position not work

Post by nageswaragunupudi »

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

      :bChange       := { || oImage:Refresh() }
 
with

Code: Select all

      :bChange       := { || oImage:Refresh(), oImage:Rotate( 45 ) }
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
richard-service
Posts: 583
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan
Contact:

Re: Xbrowse or Ximage Load picture position not work

Post by richard-service »

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

      :bChange       := { || oImage:Refresh() }
 
with

Code: Select all

      :bChange       := { || oImage:Refresh(), oImage:Rotate( 45 ) }
 
Mr.Rao
Thanks a lot.
Regards,

Richard

Harbour 3.2.0dev (r1904111533)/xHarbour 1.2.3 Intl. (SimpLex) (Build 20180818) => Borland C++ v7.4
xHarbour 0.99.71 (SimpLex) => Borland C++ v5.5
MySQL v5.7 /ADS v12
Harbour 3.2.0dev (r1603181642) => Borland C++ v7.4 64bit
Post Reply