B4A Library Today I introduce my new library [ICOSImageAnimator 1.3]

Hi guys, today I introduce a new library ICOSImageAnimator.

This library is designed to create a slide show.

The demo is very clear and simple.

Use it and let me know.

Any ideas for future updates is appreciated.
 

Attachments

  • ICOSImageAnimator 1.0.zip
    368.2 KB · Views: 1,009
  • ICOSImageAnimator 1.3.zip
    295.3 KB · Views: 601
Last edited:

jota

Active Member
Licensed User
Longtime User
For some reason the library reduces the size of the images, the example I wanted to illustrate the error attached full screen. Actually only have to be an image since the two are the same size. Thanks

Sorry my English, is the google translator.
 

Attachments

  • err.jpg
    err.jpg
    48.2 KB · Views: 233

lonleystar

Well-Known Member
Licensed User
Longtime User
For some reason the library reduces the size of the images, the example I wanted to illustrate the error attached full screen. Actually only have to be an image since the two are the same size. Thanks

Sorry my English, is the google translator.
Hi jota, i really dont understand,If you explain me really what do you want to do I can help you. Un example please.

N.b
This library works alone.

best regard

G.Salvi
 

jota

Active Member
Licensed User
Longtime User
' use resolution 800x480

i.Initialize("i")
iv.Initialize("")


Activity.AddView(iv,0,0,100%x,100%y) '<--- 100% screen
iv.Gravity = Gravity.LEFT '<------------ Gravity left not fill
Activity.AddView(i,0,0,iv.Width,iv.Height) '<--- 100% screen



bmpDoc.Initialize(File.DirAssets,"doc.png")
Dim r As Rect
r.Initialize(0,0,iv.Width,iv.Height)
bmpt.InitializeMutable(iv.Width,iv.Height) '<--- 100% screen
c.Initialize2(bmpt)
c.DrawBitmap(bmpDoc,Null,r)



'should be the same size but is smaller ICOSImageAnimator
iv.SetBackgroundImage(bmpt)
i.SetBitmap=bmpt
Thanks again ;)
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Thanks again ;)
hi jota, try to use ICOSImageView instead ImageView and

x=100%x
y=100%y-50dip
'sizes equals

Activity.AddView(iv,0,0,x,y)
Activity.AddView(i,0,0,x,y)

'created a graphic object size
bmpDoc.Initialize(File.DirAssets,"doc.png")
Dim r As Rect
r.Initialize(0,0,x,y)
bmpt.InitializeMutable(x,y)
c.Initialize2(bmpt)
c.DrawBitmap(bmpDoc,Null,r)
let me know.
 

jota

Active Member
Licensed User
Longtime User
The origin of this problem in the density of the screen.

if density is less than or equal to 1 works well, but if higher reduces the image size.
 

colboy

Member
Licensed User
Longtime User
This looks like a great ilbrary, I'm just having one problem. How do you do a continual transition between two images. If I change the event for m2_Click to

B4X:
i.Animate(i.CurvedPathRight)
i.SetBitmap=b2
i.Animate(i.CurvedPathLeft)
i.SetBitmap=b1
i.Animate(i.CurvedPathDown)
i.SetBitmap=b2
i.Animate(i.CurvedPathUp)
i.SetBitmap=b1

You only ever see the last transition. I ideally want the transitions to continually run, while an MP3 is playing.

Colin
 

lonleystar

Well-Known Member
Licensed User
Longtime User
This looks like a great ilbrary, I'm just having one problem. How do you do a continual transition between two images. If I change the event for m2_Click to

B4X:
i.Animate(i.CurvedPathRight)
i.SetBitmap=b2
i.Animate(i.CurvedPathLeft)
i.SetBitmap=b1
i.Animate(i.CurvedPathDown)
i.SetBitmap=b2
i.Animate(i.CurvedPathUp)
i.SetBitmap=b1

You only ever see the last transition. I ideally want the transitions to continually run, while an MP3 is playing.

Colin
Hi colboy, I think you should use some loop. as while or do etc etc.

This is an idea. U gave me a good tip.

Example:

dim x as int
x=MediaPlayer.Duration-2

do{
i.Animate(i.CurvedPathRight)
i.SetBitmap=b2
i.Animate(i.CurvedPathLeft)
i.SetBitmap=b1
i.Animate(i.CurvedPathDown)
i.SetBitmap=b2
i.Animate(i.CurvedPathUp)
i.SetBitmap=b1

}while( x < MediaPlayer.Duration );
 

colboy

Member
Licensed User
Longtime User
i understand that, but as I mentioned I only ever see one transition, the last one.

Colin
 

juergen_pool

Member
Licensed User
Longtime User
Hi lonleystar,

is there any chance to center smaller images in the imageanimator? I have a mix of bigger and smaller images, so the small images will always top/left, while the big images are fullscreen.
 

juergen_pool

Member
Licensed User
Longtime User
Hi lonleystar,

this ist a very usefull library for me, i use it to show my own pictures in the family and to friends, it's allways a great fun.
I'm using your CoverFlow-Library to choose the album and then this Lib for presenting the pictures with random audio playing. Very nice!

And your support is excellent!

Thanks

Juergen
 

GMan

Well-Known Member
Licensed User
Longtime User
Can i start 2 (or more animations at the same time in/on the same activity ?
i.e. a title bitmap and a logo bitmap

Works
 
Last edited:
Top