Posts

[Pixyway] Windows picture viewer - Introducing Color palette feature

Image
  Version 0.9.3.0 has been released - enjoy colors ! This version introduce a new feature. It's about color management for your pictures. So actually you can use the following functionnalities: - reduce your picture number of colors (using 2 algorithms: posterize (simple) and Quantize that keeps the picture consistency) - you can also convert your picture to black and white or gray levels pictures - you can display the picture's palette (actually the first 2000 colors) and see the HEXA code or ARGB values for each color And and interesting part of the feature is that you can also: export the picture palette: - actually to a new PNG picture containing all the colors - or to a CSV file Other improvements This new version lets you send us comments and feebacks. And new settings (for instance file association) have been added. Enjoy and tell us what you thunk about Pixyway ! Some screenshots here: And as usual, follow us on facebook and Buymeacoffee.com  ! Download here: Pixyway fo

[Quick guide] How to create a C# Telegram bot

Image
Quick guide to setup a .NET Telegram Bot and deploy it as a Windows Service Create the bot definition (Telegram) On Telegram, search and use the “ botFather” bot (looks like the image below). Once you found the bot, type the ‘/newbot’ command and follow the instructions: You have to store: the TOKEN to access the API your bot’s name and user’s name Once your bot is created, you can customize it by different ways (type ‘ /start ’ to get the full list of available operations): General bot communication workflow After creating your bot, you have to understand the very general main communication workflow for a Telegram bot: Design a new bot (.NET example) .NET project using Telegram.BotApi package We will design a Telegram BOT in .NET. Fot this, we will use the Telegram.BotApi nuget package. First create a new .NET 8 Project (latest .NET version). ADD tht Telegram.BotApi package (one of the most complete package at this time): https://www.nuget.org/packages/Telegram.B

Pixyway picture viewer (for Windows)

Image
Pixyway picture viewer Hello guys, today I'm proud to announce you that I have just released a Windows app that I made these lasts months. As almost all computer projects never see the light of day , I decided that one of my goal will be to publish it publicly. And today it's done! A brief history One of my prefered subject is image computing, photography and all the digital arts. I don't know if you remeber the Google software "Picasa" but I used to loved it for its simplicity and efficiency. Nowadays, Picasa is only a warm memory and is no more availble... The fact is that all software are transferred to the web :( For some it's justified but for a lot of other I still "don't understand" why... This is not the question of the day, but it made decide to implement a real desktop application that could be replace (even a little bit) my loved Google Picasa app :) It's how Pixyway viewer is borned ! Pixyway quick description With Pixyway you ca

[Flutter] Adding background image to your pages

Image
There are many ways to add a background image to your pages, but the most common way is to use a BoxDecoration Widget. The BoxDecoration Widget is placed under a parent Container Widget (container.decoration). Then, you can customise the Image decoration using Assets images, Network images... Sample code (with an asset image): @ override Widget build ( BuildContext context ) { return GetBuilder < MainPageController >( id : 'mainpage' , init : MainPageController (), builder : ( vm ) => Scaffold ( body : Container ( width : double . infinity , height : double . infinity , decoration : const BoxDecoration ( image : DecorationImage ( image : AssetImage ( 'assets/images/dark_background2.jpg' ), fit : BoxFit . fill , )), child : SafeArea ( top : true , bottom : true , child : Container (

[Flutter] Get some special directories path

Image
I'm sure, if you are a Flutter's developer, that you will need one day to get specific paths, for instance to store files, generate temporary files etc... Path_provider package For that I use the 'path_provider' package that has some helpers methods. For example: Future < Directory >   getApplicationDocumentsDirectory ( ) returns the documents directory. How to use it ? Directory tempDir = await getTemporaryDirectory(); String tempPath = tempDir.path; Directory appDocDir = await getApplicationDocumentsDirectory(); String appDocPath = appDocDir.path; Follow the links: Package:  https://pub.dev/packages/path_provider Package's documentation:  https://pub.dev/documentation/path_provider/latest/index.html

[Flutter] Translations, internationalisation with GetX package

Image
As applications are actually spread around the world, a common task to implement when developing your app (mobile, web or desktop), is to setup a multi-language option .  In Flutter, it can be done easily with the GetX Package (a useful package that provides a lot more services ! You should take a look if you don't know this package:  GetX package on pub.dev . The implementation steps are the following: 1-Add GetX package to your solution You can do it the traditional way you like. For instance with "Pub Assist" extension: Shift+CMD+P > Pub asssist: add/upgrade > get 2-Use a GetMaterialApp Important step, do not forget to use the GetMaterialApp classe instead of Flutter's MaterialApp: @ override Widget build ( BuildContext context ) { return GetMaterialApp ( 3-Add a translation file Next you have to add a class that will embed all your strings declaration / translations. This class must extends the GetX's Translation class. Here is an example:

[Flutter] Useful commands and tips

Image
Here is a list of useful Flutter's commands / tips when you start developing with (in progress...). ( To find a topic try to search a keyword on this webpage... will be updated through time ) Create a new project in visual Studio Code >  CMD + Shift + P to display action palette > flutter: New project Update Flutter to the latest version >  flutter upgrade Check actual Flutter version >  flutter --version Flutter change of (git) channel (master, dev, beta stable) >  flutter channel beta > flutter channel master > flutter pub cache repair //To perform a clean reinstall of the packages in your system cache, use pub cache repair > flutter clean //flutter clean will delete the /build folder Activate / Deactivate web support for a project >  flutter config --no-enable-web >  flutter config --enable-web Disable "debug banner" (MaterialApp's debugShowCheckedModeBanner) // This widget is the root of your application. @ override Widget buil