Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # By: Dax | Requer: Dax Core
- # Testando..
- # O comando para se usar é esse: NÃO ESQUEÇA DE ESPECIFICAR ÀS PASTAS.
- # Bitmap.overSave(nome da nova imagem, nome da primeira imagem, nomes das imagens)
- # exemplo: Bitmap.overSave("Pictures/Nova", "Pictures/1", "Characters/2",
- # "Pictures/3", "Characters/4", "Pictures/5")
- class Bitmap
- def self.overSave(newfile, first, *args)
- return if first.empty? || first.nil? || args.empty? || args.nil?
- firstB = Bitmap.new("Graphics/"+first)
- args.each { |outhers|
- firstB.stretch_blt(firstB.rect, Bitmap.new("Graphics/"+outhers), firstB.rect)
- }
- firstB.save("Graphics/"+newfile)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement