For creating Facebook App, we need Icons and banners for the app with defined sizes. At the time of development ,we don't concentrate on Icons and Banners design. At the starting stage we need rough Icons and Banners. If you are a java developer you can create these Icons and Banners in a minute. You can find the basic Idea of this app at http://blog.sodhanalibrary.com/2014/09/create-phonegapcordova-icons-and.html
Replace appIcon with your own app icon Path
Add dimension of the Icon you want to dimensions
Run this program
Find destination path for new Icons
Java Library :
For quality image scaling, I have used java-image-scaling library.Java Program to create icons :
Replace destinationDir with your own destination directory PathReplace appIcon with your own app icon Path
Add dimension of the Icon you want to dimensions
Run this program
Find destination path for new Icons
import java.awt.Dimension; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.util.ArrayList; import javax.imageio.ImageIO; import com.mortennobel.imagescaling.ResampleOp; public class CreateFbAppIcons { static String destinationDir = "C:\\fbIcons"; static String appIcon = "C:\\icon.png"; static ArrayList<Dimension> dimensions = new ArrayList<Dimension>(); public static void main(String[] args) throws IOException { dimensions.add(new Dimension(1024,1024)); dimensions.add(new Dimension(16,16)); readFile(destinationDir); } public static void readFile(String path) throws IOException { File destDir = new File(destinationDir); if(!destDir.exists()) { destDir.mkdirs(); } BufferedImage appIconImg = ImageIO.read(new File(appIcon)); for(Dimension dim : dimensions) { String destFilePath = destinationDir+"\\icon"+(int)dim.getWidth()+"X"+(int)dim.getHeight()+".png"; File destFile = new File(destFilePath); if(!destFile.exists()) { destFile.createNewFile(); } System.out.println("File "+ destFile.getAbsolutePath()); ResampleOp resampleOp = new ResampleOp((int)dim.getWidth(),(int)dim.getHeight()); BufferedImage generatedIcon = resampleOp.filter(appIconImg, null); ImageIO.write(generatedIcon, "png", destFile); } } }
Java Program to Create Banners :
Run this program
Find destination path for new Banners
If you want any banner with specific size then you can add those dimension to dimensions
Find destination path for new Banners
If you want any banner with specific size then you can add those dimension to dimensions
import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.util.ArrayList; import javax.imageio.ImageIO; import com.mortennobel.imagescaling.ResampleOp; public class CreateFbBanners { static String destinationDir = "C:\\fbIcons"; static String appIcon = "C:\\icon.png"; static ArrayList<Dimension> dimensions = new ArrayList<Dimension>(); public static void main(String[] args) throws IOException { dimensions.add(new Dimension(800,150)); dimensions.add(new Dimension(1200,627)); dimensions.add(new Dimension(1848,682)); dimensions.add(new Dimension(155,100)); readFile(destinationDir); } public static void readFile(String path) throws IOException { File dir = new File(destinationDir); if(!dir.exists()) { dir.mkdirs(); } BufferedImage appIconImg = ImageIO.read(new File(appIcon)); for(Dimension dim : dimensions) { String destFilePath = destinationDir+"\\icon"+(int)dim.getWidth()+"X"+(int)dim.getHeight()+".png"; File destFile = new File(destFilePath); if(!destFile.exists()) { destFile.createNewFile(); } System.out.println("File "+ destFile.getAbsolutePath()); ImageIO.write(createScreenImage(appIconImg,(int)dim.getWidth(),(int)dim.getHeight()), "png", destFile); } } private static BufferedImage createScreenImage(BufferedImage appIconImg, int width, int height) throws IOException { int type = appIconImg.getType() == 0? BufferedImage.TYPE_INT_ARGB : appIconImg.getType(); BufferedImage newPGScreen = new BufferedImage(width, height, type); Graphics2D g = newPGScreen.createGraphics(); g.setColor(new Color(255,255,255)); g.fillRect(0, 0, width, height); double minSize = 0, tw = (double)width, th = (double)height; if(tw < th) { minSize = tw; } else { minSize = th; } minSize = minSize / 4; ResampleOp resampleOp = new ResampleOp((int)(minSize*2), (int)(minSize*2)); BufferedImage resizedIcon = resampleOp.filter(appIconImg, null); g.drawImage(resizedIcon, (int)((tw/2) - minSize), (int)((th/2) - minSize) , null); g.dispose(); return newPGScreen; } }
ac market apk
ReplyDeleteblackmart alpha apk
whatsapp plus apk
freedom apk
gbwhatsapp apk
https://apkuncle.com/
Nice article. All the sections of your site covered with great functions. I really like the content and discussions on your site. Thanks a lot for allowing me to join. I love to see more about GB WhatsApp. Keep sharing and updating. Also share more posts with us. Thank you.
Delete
ReplyDeleteWonderful information! I found amazing information on the blogs i suggest everyone to follow the links below to get download files from this website.
gbwhatsapp apk
acmarket apk
freedom apk
live nettv apk
aptoide apk
Thanks for the detailed information about this. I would love to see more such awesome blog posts from you. Keep up the Good Work! Thats why I love Gbwhatsapp, It has a lot of awesome features.
ReplyDeleteIs YOWhatsApp safe to use?
DeleteIf you are interested in then we can provide you thewhat is crm and database marketing
ReplyDeleteWe also provide to help you in company database
We also provide business data and crm software details.
Thank you for sharing this useful article information.
ReplyDeletegb whatsapp new version
whatsapp group link app download
Oh boy these banners and icons are just OP. Thank alot for sharing this. Also check out Nulled WP Plugins 2021, clash of clans MOD APK 2021, and MODSDROID
ReplyDeleteWe also provide business data and crm software details.
ReplyDeleteWe also provide best business directory
great info dear
ReplyDeletetreadmills best
top good best treadmills
gaming chairs check
top gaming chair check
top good chair gaming
Good blog. Keep sharing. I love them Are you also searching for Cheap Essay24/7? we are the best solution for you. We are best known for delivering cheap essays to students without having to break the bank
ReplyDeleteHey, thank you a lot for sharing this article with us. I can’t say, how grateful we are to read this. Also, I would love to share it with my friends and family, who are interested. I hope you will publish such articles in the future as well. It’s so helpful. Goodbye! Download KineMaster Mods
ReplyDeleteThanks for the detailed article on this topic. I would like to see more such awesome articles from you. Download GBWhatsApp APK
ReplyDeleteThanks for sharing this valuable piece of information. Keep sharing more such awesome articles in the future. Goodbye! Download FMWhatsApp APK
ReplyDelete
ReplyDeleteI hope this post is beneficial for viewers. Many thanks for the shared this informative and interesting post with us.
plagiarism-checker-x
Nice post. Also, check this call of duty apk download 2021
ReplyDeleteThat's an outstanding piece of work!I look forward to seeing more!I am very impressed form it.
ReplyDeleteavira phantom vpn crack
ReplyDeletehello sir,Really amazing work keep doing and keep spreading the information , like your post .remove logo now 2.0 crack
I am very impressed with your post because this post is very beneficial for me and provide a new knowledge… clean my mac high sierra crack
ReplyDeleteduplicate cleaner 4 license key amazed at how much the Cleaner Pro License key can
ReplyDeleteignore you in a file of unnecessary or forged documents.
Thanks for Sharing such an amazing article. Keep working... Your Site is very nice, and it's very helping us.. this post is unique and interesting, thank you for sharing this awesome information Abbyy Finereader Crack
ReplyDeleteI am very lucky to have been able to visit your blog and learn about such an intriguing topic
ReplyDeletetopic
So I will bookmark this page so that I can come back to it in the future.
FullKeygens
Your post is based on the informative things. This is very informative for me and i think, your post is also informative for the world. Keep on hardworking if you want to progress in the future. Thanks again for the great post.
ReplyDeletefreekeyspro
An informative and knowledgeable site.
ReplyDeleteI really appreciate the article you shared with us.
artensoft photo collage maker
Wonderful work! This is the kind of info that are meant to be shared across the internet. Disgrace on the search engines for not positioning this post higher! Come on over and consult with my website. avg antivirus activation code
ReplyDeleteSuch a great information for blogger i am a professional blogger thanks softwareeagle.com
ReplyDeleteidm universal web crack
ReplyDeleteitubego cracked
free youtube download premium key
adobe photoshop cs6 extended crack .dll files 32bit/64bit
m3 data recovery cracked
save wizard for ps4 max crack
Avast AntiTrack Premium License Key
m3 raw drive recovery full
avast secureline vpn license file
Thanks for this informative blog and forgiving us and the opportunity to share our views.
Thank you for allowing us to share our views in this informative blog. Share Get4Crack with others because Sharing is Carring
ReplyDeleteRevo Uninstaller Gigapurbalingga
Any Video Converter Gigapurbalingga
Pepakura Designer 4 Key
Hitman Pro Gigapurbalingga
Zbrush Mirror Subtool
Tuneskit Spotify Converter Non Funziona
DLL Keygen
HDD Regenerator Torrent
Thanks For Allowing us to Share Our Views In This Blog. Share PcsCrack With others.
ReplyDeletepepakura-designer-4-key
corel-draw-x7-keygen
sony acid pro 7 free download full version with crack
Dllkeys
key iobit uninstaller 5.3 pro
ReplyDeleteedraw max 9.1 crack
mIRC 7.46 Registration Code
Braina Pro Crack
Internet Download Manager Crack
element3d v2 crack
Thanks For Allowing Us To Share Our Views In This Blog.Share fullpcpatch With Other
ReplyDeleteiexplorer-full-version
xsplit-broadcaster-crack
superantispyware-registration-code
sclip-paint-studio-crack
wondershare-video-converter-ultimate-full
fast mailer pro crack
ReplyDeletepano2vr export
mixcraft 4 registration code
affinity movie editor
enscape 2.7 crack
crack u
Hello, Dear Thanks for sharing such great content with the US it’s really amazing content so please keep sharing. I also have something for you so please check out
ReplyDeleteLuminar Neo Ios Torrent Mac
Luminar AI Ios Mac Torrent
In the game, players participate in illegal street races that focus on different racing styles, using a variety of real-world licensed cars (available at the time of game development and launch) that can be updated and customized with new pieces. while facing the involvement of the police in their efforts to prevent the player. Racing events focus on competitive races with other drivers on point-to-point circuits or routes, checkpoint races and races PES 2016 download Miracle Box Cracked m3 data recovery crack vray crack freemake video converter crack key Crime Korean Drama primocache crack icloud remover crack planswift crack Connectify Hotspot Cracksprints or drifts (the latter absent in its predecessor), with players able to use Nitrogen oxide and Speedbreaker when needed. either to help win the race, or to get out of difficult situations that recharge over time. The game itself features four game modes: Race, Quick Race, Challenge Series and Multiplayer, the latter offering online play available on all console and PC versions of the game, except the Wii edition.
ReplyDeleteYou must be known about WhatsApp mods, but most of the mods are just made for small purpose use. But FMWhatsApp is one of the best.
ReplyDeleteconverter crack key Crime Korean Drama primocache crack icloud remover crack planswift crack Connectify Hotspot Cracksprints or drifts (the latter absent in its predecessor), with players able to use Nitrogen oxide and Speedbreaker when needed. either to help win the race, or to get out of difficult situations that recharge over time. The game itself features four game modes: Race, Quick Race, Challenge Series and Multiplayer, the latter offering online play available on all console and PC versions of the game, except the Wii edition.iVCam Crack Free Download Full Version
ReplyDeletestudio one 4 license file download
rc20 plugin free mac
best hair straightener under 50 dollar
cs go monitor