This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Windows.Forms; | |
using System.ComponentModel; | |
using System.Drawing; | |
using System.Runtime.InteropServices; | |
namespace Experiment_VS_Graphics_FromHwnd | |
{ | |
public class Form1 : Form |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
i pass image into my print fucntion .. which is webbrowser HTML to Image. | |
to print that image you have to use that "PrintPage Event -> e.DrawImage " | |
*/ | |
public static void Print(this Image image, string printerName, string printFileName) | |
{ | |
if (printerName == null) | |
{ | |
throw new ArgumentNullException("Printer cannot be null.", nameof(printerName)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'dart:math'; | |
void main() => runApp(const MyApp()); | |
class MyApp extends StatelessWidget { | |
const MyApp({Key? key}) : super(key: key); | |
static const String _title = 'Flutter Code CustomStep_RangeSlider'; |