B4J Question No image tools?

aidymp

Well-Known Member
Licensed User
Longtime User
Hi, B4J seems to have no image manipulation tools? or am i blind lol

I have a widescreen image I want to make the canvas square and put the image in the centre so I have a and maybe overlay a transparent image over the top. then save it as a bmp!

in B4A this would be quite simple, but i see nothing for b4j?

Any clues

Thanks

Aidy
 

eurojam

Well-Known Member
Licensed User
Longtime User
it is someting like this, two images, a canvas, two rectangles and then snapshot, outputstream....
B4X:
  Dim img,img2 As Image
  img.Initialize(path, file)
  cvsIcon.DrawImage2(img, 0,0,img.Width,img.Height,0,0, cvsIcon.Width,cvsIcon.Height)
  img2 = cvsIcon.Snapshot
  Dim out As OutputStream = File.OpenOutput(PrjPath & PrjName & "\", btnIcon.Tag,False)
  img2.WriteToStream( out)
  out.Close
 
Upvote 0
Top