首页 \ 问答 \ 将HTML组件Flex到位图(Flex HTML component to bitmap)

将HTML组件Flex到位图(Flex HTML component to bitmap)

我正在Flex中创建HTML组件,加载URL然后捕获该元素并将其转换为位图以尝试复制一种自动屏幕保护过程。

但是它生成的位图不包含HTML中的任何flash元素。 任何人都有任何想法为什么会这样?


I'm creating a HTML Component in Flex, loading a URL and then capturing that element and converting it to a bitmap to try and replicate a sort of automatic screenshot saving process.

However the bitmaps that it is producing do not contain any flash elements from the HTML. Anyone have any ideas why this is?


原文:https://stackoverflow.com/questions/3109709
更新时间:2024-01-02 09:01

最满意答案

var points = from g in groupedData
             let gMax = g.Max(e => e.X > e.Y ?
                                    (e.X > e.Z ? e.X : e.Z)
                                  : (e.Y > e.Z ? e.Y : e.Z))
             from ep in g
             where ep.X == gMax
                   || ep.Y == gMax
                   || ep.Z == gMax
             select ep;

PS:Linq2SQL还是Linq2Entities? 因为你标记了“EF”!

编辑:我刚刚测试了这个成功:

var points = from g in groupedData
             let gMax = g.Max(e => new int[] { e.X, e.Y, e.Z }.Max())
             from ep in g
             where ep.X == gMax
                   || ep.Y == gMax
                   || ep.Z == gMax
             select ep;

你确认它适用于你的情况吗?


var points = from g in groupedData
             let gMax = g.Max(e => e.X > e.Y ?
                                    (e.X > e.Z ? e.X : e.Z)
                                  : (e.Y > e.Z ? e.Y : e.Z))
             from ep in g
             where ep.X == gMax
                   || ep.Y == gMax
                   || ep.Z == gMax
             select ep;

PS : Linq2SQL or Linq2Entities ? Because you flagged "EF" !

Edit : I've just tested this with success :

var points = from g in groupedData
             let gMax = g.Max(e => new int[] { e.X, e.Y, e.Z }.Max())
             from ep in g
             where ep.X == gMax
                   || ep.Y == gMax
                   || ep.Z == gMax
             select ep;

Do you confirm it works in your case ?

相关问答

更多
  • 您可以分两步完成此操作(为了便于阅读)。 var excludedNames = DbContext.GetAll() .Where(x => x.ModeID == module.ModID) .Select(x => x.FncName); var result = DBContext.GetAll() ...
  • 试试这个(检查productinfos(s)拼写错误): 编辑:对不起,我给你左外连接。 右外部连接在Linq中不可用,因此您需要稍微重新设置查询的格式。 var queryjoin = from p in productinfos join b in books.values on p.riskbookid equals b.id into outer from o in outer.DefaultIf ...
  • 我假设你的意思是“在Linq to Sql”。 Linq本身只是将表达式传递给LinqProvider,LinqProvider将其转换为适合被查询的数据存储的东西。 话虽这么说,我很确定Linq对Sql使用的MSSQL提供程序会将last_name >= "Smith" and last_name <= "Thomson"转换为BETWEEN表达式。 更新:经验证据(通过LINQPad)显示它不会转换为BETWEEN I assume you mean "in Linq to Sql". Linq by ...
  • 不,“只是”LINQ(LINQ到对象)不会更新任何东西。 因此,要更新数据库,您需要LINQ-to-SQL或LINQ-to-Entities(实体框架)。 但是你也需要这样的东西来读取数据库,所以应该没有问题。 No, "Just" LINQ (LINQ-to-Objects) won't update anything. So to update a database you need either LINQ-to-SQL or LINQ-to-Entities (Entity Framework). B ...
  • LINQ to SQL框架将采用您的Linq查询,该查询实际上是一个表达式树,然后将此表达式树转换为纯SQL查询。 请参阅如何:使用表达式树构建动态查询 事实上,每个表达式树可以被翻译成你需要的任何语言或数据库。 你将有不同的提供者为不同的数据库( Oracle , SQLite等)实现IQueryable。 请注意,LINQ to SQL是LINQ to SQL Server的缩写。 另一方面,实体框架/ LINQ to Entities可以更容易地扩展到其他数据库。 这里的要点是IQueryable接口 ...
  • 如果您不使用LinqToSql类设计器,则应考虑使用它。 它生成的类将支持您概述的插入方案。 我可以告诉你,你没有使用设计器,因为它会在Person上给你一个Notes(复数)属性......因为Person是1到多数的Notes。 如何配置LTS按需加载笔记? 设计器将生成EntitySet(Note)类型的属性,该属性将根据需要加载Notes。 If you aren't using the LinqToSql class designer, you should think about using i ...
  • Linq是一个基于.NET框架的技术来查询对象(任何实现IEnumerable的东西)。 Linq to SQL是对此的扩展,它允许您查询SQL Server数据库。 是的,没有SQL的Linq在这里待下来。 这是一个神话般的技术。 很长一段时间里,最好的事情之一,海事组织,从雷德蒙德出来。 Linq is a .NET framework based technology to query objects (anything that implements IEnumerable). Linq to SQ ...
  • var points = from g in groupedData let gMax = g.Max(e => e.X > e.Y ? (e.X > e.Z ? e.X : e.Z) : (e.Y > e.Z ? e.Y : e.Z)) from ep in g where ep.X == ...
  • 目前的MS推动力正朝向实体框架。 为什么? 因为,坦率地说,LINQ to SQL是由于EF被推迟而引发的。 我喜欢LINQ作为“迭代”的一种手段(不太正确,因为它适用于rX而不是枚举,但这可能在技术上有点过于具体)。 如果你想前往MS前进的地方,我会瞄准EF。 我个人在当前的迭代中发现了一些问题,但它正在变得更好。 你的旅费可能会改变。 如果这不是数据访问的方式,我会考虑非自定义OR映射器。 它们有很多,其中很多都有很长的历史,并且足够稳定以供企业使用(nHibernate,作为一个例子)。 除非绝对必要 ...
  • 不需要Convert.ToInt 。 此外, FirstOrDefault相当于top 1 。 如果您的查询导致返回多行, SingleOrDefault将抛出异常。 尝试使用此代码: TaxCost = (from tax in db.DB2011_Vehicle_CarTax orderby Math.Abs(C02Level - tax.C02_From) select tax).FirstOrDefault(); 与其他答案相反,我认为没有必要避免使用M ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。