I have observed that when we load photos in ImageEnMView it automatically rotates all photos that are shot using tilted camera.
So any photo snapped by rotating the camera at say for example 90 degree is automatically rotated to show it properly.
My question is when we load a photo of such nature using following code in a layer:
ieTemp := TImageEnView.Create(Application);
ieTemp.LayersAdd;
ieTemp.IO.LoadFromFile(fn);
// +++++++++++++++++++++++++++++++++++++
if ieTemp.Layers[ieTemp.LayersCurrent].Width < LW then
begin
if LW > LH then
ieTemp.Proc.Resample(LW, -1, TResampleFilter(4))
else
ieTemp.Proc.Resample(-1, LH, TResampleFilter(4));
ieTemp.Proc.Sharpen(8);
end
else
begin
if LW > LH then
ieTemp.Proc.Resample(LW, -1, TResampleFilter(0))
else
ieTemp.Proc.Resample(-1, LH, TResampleFilter(0));
end;
// ieTemp.Proc.Sharpen(5);
// +++++++++++++++++++++++++++++++++++++
Child.ImageEnView1.Layers[i].Assign(ieTemp.CurrentLayer);
ieTemp.Free;
It does not auto rotate. How to get ImageEn to auto rotate the photo when opening it?
TIA
Yogi Yang