ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Problem of orientation and Alpha Channel.

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
wesleybobato Posted - Jan 08 2016 : 09:43:04
TImageEnMView
Loads with Different Orientation Thumbnail when the StoryType Property = ietThumb

I added Some sample shots.



attach/wesleybobato/20161894211_Orientation.zip
4912.44 KB

TImageEnView.
Problem when using ImageEnView1. BlackValue ImageEnView1. IEBitmap. and IEBitmap. WhiteValue
When loading Images with Alpha Channels

I added an example for better understanding.

Thank you very much.

attach/wesleybobato/20161894128_DisplayAdjust.zip
23.47 KB
16   L A T E S T    R E P L I E S    (Newest First)
wesleybobato Posted - Jan 18 2016 : 08:00:17
Hello Nigel

Thank you very much for your attention, to solve this.

Have a wonderful Day.

Best regards.
xequte Posted - Jan 18 2016 : 03:24:21
Hi Wesley

We're adding support for Black/White adjustment on images with Alpha Channel in the next update (ready next week).

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
wesleybobato Posted - Jan 11 2016 : 17:51:38
Hi Nigel.

Please Download this File Here.
http://imageen.com/ieforum/attach/wesleybobato/20161894128_DisplayAdjust.zip

1 - Compile Example.
2 - Open Picture.
3 - Move TrackBar->BlackValue and Trackbar->WhiteValue

not Work because Have Alpha Channel.
if you Remove Alpha Channel Work Normal.

Thanks For you Attention

Good Day.
xequte Posted - Jan 11 2016 : 17:43:13
Hi Wesley

How can I reproduce the WhiteValue/BlackValue issue?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
wesleybobato Posted - Jan 10 2016 : 10:58:35
Hello Nigel and Bill.
Thank You for Attention.

I solved the problem of Image Rotation.
Nigel has ImageEn Some BUG to use IEBitmap.WhiteValue and IEBitmap.BlackValue with Alpha Channel?
xequte Posted - Jan 10 2016 : 02:56:49
Hi Wesley

I believe Bill is right. When the store mode is set to ietThumb, then it uses the EXIF thumbnail of the image, which has been rotated automatically by the camera. However the image itself is not rotated.

You can probably resolve the issue by setting ImageEnView1.EnableAdjustOrientation to true.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
wesleybobato Posted - Jan 08 2016 : 14:47:00
Hello Bill.

Thank you for your attention.

Unfortunately I can not Remove Alpha Channel, I need to keep them
I wonder if You can make it work with Alpha Channel?

Thank you very much.
w2m Posted - Jan 08 2016 : 14:39:02
I do not think BlackValue or WhiteValue will work with 32-bit images. To get it to work call ImageEnView1.RemoveAlphaChannel(true). Your Black and White value trackbars function here if you remove the alphachannel.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
wesleybobato Posted - Jan 08 2016 : 13:15:01
Hello Bill

You Confirm that there is a problem with Alpha Channel?
Because Me does not work BlackValue and WhiteValue.

Thank you
wesleybobato Posted - Jan 08 2016 : 13:03:05
Hello Bill.

Thanks I Will Check Every Detail Then Post Again.

Have a great day.
w2m Posted - Jan 08 2016 : 13:01:38
Look at the EXIF values for EXIF_Orientation in your images. I suspect the IPhone 4S stores the rotation in the EXIF, but the others do not.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
wesleybobato Posted - Jan 08 2016 : 12:59:20
Hello Bill.
If You Test With Other JPEG Loads Correctly
Only those of the Iphone :(
wesleybobato Posted - Jan 08 2016 : 12:57:18
Hello Bill.

Thanks Again.
I can not change this EnableLoadEXIFThumbnails property to False;

Because I I get Extra speed on Loading of Thumbnails.

Weird that this happens Only with these Pictures
These photos are from an Iphone 4S
w2m Posted - Jan 08 2016 : 12:52:09
I do not think there is a problem. I suspect when you load the thumbnails the exif thumbnails are loaded with the exif orientation in the file. So to fix it just have to set some properties before loading the images:

procedure TForm1.FormCreate(Sender: TObject);
begin
ImageEnMView1.EnableAdjustOrientation := False;
ImageEnMView1.EnableLoadEXIFThumbnails := False;
ImageEnMView1.FillFromDirectory('G:\Projects\ImageEnTest\Orientation');
end;

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
wesleybobato Posted - Jan 08 2016 : 12:43:21
Hello Bill.

Thank you for your attention.
The Problem my Friend is that I would like to know if the JPEG Thumbnail File this with this style, or if this is a problem with ImageEN.

Because When I change the TimageEnMView. StoryType = Normal.
the Thumbnail Loads Correctly.

Every time I change the StoryType Property TImageEnMView loads the Thumbnail with Different Orientation

Thank you
w2m Posted - Jan 08 2016 : 12:28:10
Hi Wesley,

Add: uses iexHelperFunctions;
You can then use ImageEnView1.IO.LoadFromFileEx(ImageEnMView1.ImageFileName[idx], True, 0) to load the image with the same orientation as in the ImageEnMView1 with your demo.


Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development