我搜索了这个问题并提出了各种解决方案.
但是,没有一个对我有用.
我在应用程序中有一个绘图画布.
画布的背景设置为活动中的png图像,该图像使用自定义视图(drawView);
Bundle extras = intent.getExtras();
if (extras != null) {
if (extras.containsKey("background")) {
//set the background to the resource in the extras
int imageResource = intent.getIntExtra("background",-1);
Drawable image = getResources().getDrawable(imageResource);
drawView.setBackground(image);
}
}
Run Code Online (Sandbox Code Playgroud)
在DrawingView类(drawview是实例)中,我存储了PathPaints集合中绘制的路径,它具有3个属性(路径,使用的绘制以及是否为橡皮擦);
private ArrayList<PathPaint> paths = new ArrayList<PathPaint>();
Run Code Online (Sandbox Code Playgroud)
然后我尝试在OnDraw中循环遍历这些路径,并每次使用它们绘制的颜料(多种颜色)重绘它们;
protected void onDraw(Canvas canvas) {
//if the drawing is new - dont draw any paths
if (isNew != true) {
//go through every previous path and draw them
for (PathPaint p : paths) {
if (!p.isErase) …Run Code Online (Sandbox Code Playgroud) 我是 Azure 数据工厂的新手,有一个有趣的需求。
我需要将文件从 Azure Blob 存储移动到 Amazon S3,最好使用 Azure 数据工厂。
但是 S3 不支持作为接收器;
https://docs.microsoft.com/en-us/azure/data-factory/copy-activity-overview
我还从我在这里阅读的各种评论中了解到,您不能直接从 Blob 存储复制到 S3 - 您需要在本地下载文件,然后将其上传到 S3。
有谁知道在数据工厂、SSIS 或 Azure Runbook 中可以执行此类操作的任何示例,我想一个选项是编写从数据工厂调用的 azure 逻辑应用程序或函数。
ssis amazon-s3 azure-storage azure-storage-blobs azure-data-factory-2