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

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
    48.2 KB · Views: 190

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
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
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:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…