ICode9

精准搜索请尝试: 精确搜索
  • C# winform 自绘控件 提供选择图片路径2022-08-01 01:33:08

    参考原文https://www.thinbug.com/q/27898827   //如以下代码,Image 属性将会 让你选择图片1 [Description("Setting the image which shows main"), Category("Custom"), 2 DefaultValue(typeof(Image),"null"), 3 EditorAttribute(typeof(System.Drawing.D

  • .NET Core(C#)使用BarcodeLib生成条码图片2022-07-22 16:42:10

    原文:https://www.cjavapy.com/article/786/   使用Nuget界面管理器 搜索“BarcodeLib”,在列表中找到它,点击“安装”    using System; using System.IO; using System.DrawingCore.Imaging; using BarcodeLib; namespace MyTest.Common { public class BarcodeHelper

  • WPF Bitmap转换ImageSource 内存瀑涨问题解决2022-06-16 12:00:49

    DispatcherTimer timer_CurrentBeat = new DispatcherTimer();//条码自动读取时钟 private void Window_Loaded(object sender, RoutedEventArgs e) { timer_CurrentBeat.Interval = new TimeSpan(0, 0, 1); //500毫秒执行一次 timer_Cu

  • centos7 docker 部署 .netcore3.1 图片验证码问题2022-06-10 22:00:40

    记录一下,https://www.jb51.cc/docker/1179513.html  需要注意的是,引用的 system.drawing.common 的版本问题。   一、前言 今天在AspNetCore3.1环境中做了一个用户登录页面,在登录页面中有一个功能就是需要后端动态绘制一个验证码图片,防止前端通过机器或爬虫工具模拟自动登录。

  • NX二次开发-隐藏与显示的全部类型2022-06-02 17:04:17

    //NX隐藏与显示的全部类型 theSession->DisplayManager()->HideByType("SHOW_HIDE_TYPE_SHEET_BODIES", DisplayManager::ShowHideScopeAnyInAssembly); //所有字符串 SHOW_HIDE_TYPE_ALL SHOW_HIDE_TYPE_GEOMETRY SHOW_HIDE_TYPE_BODIES SHOW_HIDE_TYPE_SOLID_BODIES SHOW_H

  • C# 图片处理生成缩略图2022-05-25 12:03:13

    缩略图通常是将图片内容进行一定的缩小展现,或裁剪展现,主要有两个目的,一是提供一定的预览功能,二是节省屏幕展示空间、节省流量。 在网站中我们通常运用在商品的列表,比如商城、图书、新闻等等列表的图片。在C#中我们如何生成缩略图呢,也就是缩小图片,下面我们来看一看如何缩小图片。

  • NPOI画线踩坑2022-05-23 15:04:20

        应报表需要,图标需要用线链接,在连线时,发现线条的坐标比较坑,其中  CreateAnchor中的col1,row1参数本以为是起始单元格的位置,踩坑过程中发现col1仅仅代表一个列的的位置,并不和row1一起,且必须 col1小于col2,row1小于row2 否则生成的excel打开时会报错!!!!! 图形类型:ShapeTypes.Line

  • 通过bat启动jar的命令2022-05-05 12:04:19

    title sso java ^ -Dspring.datasource.url=jdbc:mysql://172.18.25.12:3307/working-drawing-1.0.0^?characterEncoding=utf-8^&allowMultiQueries=true^&failOverReadOnly=false^&useSSL=false ^ -Dspring.datasource.username=working-drawing ^ -Dspring.dat

  • .NET 6 使用 System.Drawing.Common 出现 The type initializer for ‘Gdip’ threw an exception 异常的解决办法2022-03-09 15:31:35

    出现问题的原因 在Linux环境部署.NET Core程序时,如果要到System.Drawing.Common引用会出现该问题,目前大量的第三方组件使用该Windows专用库,尤其是涉及图片处理、Word相关的组件、二维码等   问题现象 出现相关Gdip异常,安装相应组件后重启项目及服务器无效,异常如下 The type initi

  • WPF WriteableBitmap类 + gdi画线和文字2022-01-25 14:04:02

    话不多说,直接上码: 1.新建wpfApp工程 2.MainWindow.xaml文件中代码如下: <Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml&quo

  • 基于Layui + .net mvc 上传图片压缩并添加水印2022-01-04 21:03:10

    html <button type="button" class="layui-btn layui-btn-sm" id="图片上传">图片上传</button> js /*文件上传方法*/ layui.use('upload', function () { var $ = layui.jquery , upload = layui.uplo

  • ABAP2XLSX EXCEL图片签章功能,保存PDF2021-12-24 15:33:01

    利用开源项目ABAP2XLSX,做一个签章(放置图片),并保存PDF。 签章功能可以有很多种方法,常见的是OLE调用vba macro。优点:OLE好理解   缺点:OLE速度慢,而且图片需要下载本地电脑,不能后台,重要的是VBA调试难。 SAP将图片下载本地,调用macro,放置签章。然后删除本地文件。 Sub init() Activ

  • 使用gdi+实时绘制picturebox(画个叉)2021-12-20 18:32:44

    private void DrawReticle(System.Drawing.Point pt, int size)//画一个透明的前景图片上画十字 { Bitmap bmp = new Bitmap(imageWindows[2].Width, imageWindows[2].Height);//用图片大小不要用控件大小 Graphics g = Graphics.FromImage(bmp); g.Clear(Color.Transparent); Pen

  • C#打印机2021-12-15 16:34:32

    转载 https://www.jb51.net/article/67938.htm 1.使用PrintDocument进行打印 using System; using System.Drawing; using System.Drawing.Printing; using System.Windows.Forms; namespace PrintTest { public partial class Form1 : Form { public Form1()

  • c#使用zxing打印标签2021-12-15 09:07:19

    BarCodeClass.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using ZXing.Common; using ZXing; using System.Windows.Forms; using System.Drawing; using System.Text.RegularExpressions; using ZXing.QrCode; namespace Wi

  • 机器视觉 python+mediapipe+opencv实现脸部轮廓识别2021-12-09 22:02:30

    文章目录 一、mediapipe是什么?二、使用步骤1.引入库2.主代码3.运行结果 一、mediapipe是什么? mediapipe官网 二、使用步骤 1.引入库 代码如下: import cv2 import mediapipe as mp 2.主代码 代码如下: mp_drawing = mp.solutions.drawing_utils mp_drawing_styles = mp.s

  • IDrawingComponent Interface 学习2021-12-04 19:32:13

    Solidworks学习笔记-链接Solidworks 在此基础上学习 属性 NameDescription备注ComponentGets the referenced component for this drawing component.  获取此绘图组件的引用组件。LayerGets or sets the name of the layer on which the component resides in the view.  获

  • IDrawingDoc Interface 学习笔记2021-12-03 20:59:49

    Solidworks学习笔记-链接Solidworks 在此基础上 允许访问执行绘图操作的函数。 属性 NameDescription备注ActiveDrawingViewGets the currently active drawing view.  获取当前活动的图纸视图。AutomaticViewUpdateGets or sets whether the drawing views in this drawing a

  • PADS Layout导出结构图及尺寸标注的方法2021-11-20 07:00:22

    在工作中不仅仅结构部门的同事需要给你结构图纸,有时也需要我们给结构图纸到甲方爸爸—客户;在没有结构部门同事给的结构图纸的情况下,如何从PADS Layout中导出标注了尺寸的结构图呢? 第一步:在pcb上找到尺寸标注所在的层,如尺寸标注所在的Drill Drawing层,即124层,如下:   第二步:选择:文

  • C# QRCoder 生成二维码2021-11-04 17:00:42

    /// <summary> /// 生成床位二维码 /// </summary> /// <returns></returns> public static Image BedNoEwm() { string level = "L"; QRCodeGenerator.ECCLevel eccLev

  • c# 中base64字符串和图片的相互转换2021-10-22 13:30:13

    c#base64字符串转图片用到了bitmap类,封装 GDI+ 位图,此位图由图形图像及其特性的像素数据组成。 Bitmap 是用于处理由像素数据定义的图像的对象。 具体bitmap类是什么可以自己百度查询,这里就不多介绍了。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

  • Jquery 实现点击图片放大显示在窗口2021-10-14 17:02:47

    话不多说,直接上代码吧 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Jquery实现图片点击后居中放大</title> <style> *{ margin: 0; padding: 0; } .drawing{ wid

  • Vb.Net简单绘制渐变色控件2021-10-12 17:33:22

    新建一个空白控件,控件本身什么都不用放置,大小也不需要管,粘贴代码 Imports System.Drawing Imports System.Drawing.Image Public Class NewLbl Private Color1 As Color = System.Drawing.Color.FromArgb(50, 11, 24, 42) Private Color2 As Color = System.Drawing.

  • laravel maatwebsite/Excel 3.1 使用教程 (导出篇)2021-09-23 15:33:54

    官方文档 https://docs.laravel-excel.com/3.1/getting... GIT 地址 https://github.com/maatwebsite/Laravel-Exc... 作为一个和 laravel 契合度很高的 excel 工具包,大家应该都是用过这个工具。特别是 2.x 版本几乎是用 laravel 框架都接触过,3.x 基本上全部重构,全网几乎找不到

  • C#按物理尺寸打印图片 e.Graphics.DrawImage(image,0,0); //按物理尺寸打印2021-09-18 11:34:00

      using System; using System.Collections; using System.Collections.Generic; using System.Drawing; using System.Drawing.Printing; using System.IO; using System.Linq; using System.Text; using System.Windows.Forms; namespace SYS_TEST.BaseClass { /// &l

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有